Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Nov 2018 21:41:32 +0000 (UTC)
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r485279 - in head/net/nbd-server: . files
Message-ID:  <201811182141.wAILfWR2049984@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bofh
Date: Sun Nov 18 21:41:32 2018
New Revision: 485279
URL: https://svnweb.freebsd.org/changeset/ports/485279

Log:
  net/nbd-server: Add missing patch files
  
  - BUMP
  
  Reported by:	tobik

Added:
  head/net/nbd-server/files/
  head/net/nbd-server/files/patch-nbd-server.c   (contents, props changed)
Modified:
  head/net/nbd-server/Makefile

Modified: head/net/nbd-server/Makefile
==============================================================================
--- head/net/nbd-server/Makefile	Sun Nov 18 21:33:03 2018	(r485278)
+++ head/net/nbd-server/Makefile	Sun Nov 18 21:41:32 2018	(r485279)
@@ -3,6 +3,7 @@
 
 PORTNAME=	nbd
 PORTVERSION=	3.18
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	net
 MASTER_SITES=	SF

Added: head/net/nbd-server/files/patch-nbd-server.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/nbd-server/files/patch-nbd-server.c	Sun Nov 18 21:41:32 2018	(r485279)
@@ -0,0 +1,20 @@
+Fixes compile issue
+Supposedly DT_* is not defined, though header file
+exists. 
+
+--- nbd-server.c.orig	2018-08-28 16:46:42 UTC
++++ nbd-server.c
+@@ -678,13 +678,9 @@ SERVER* cmdline(int argc, char *argv[], struct generic
+ /* forward definition of parse_cfile */
+ GArray* parse_cfile(gchar* f, struct generic_conf *genconf, bool expect_generic, GError** e);
+ 
+-#ifdef HAVE_STRUCT_DIRENT_D_TYPE
+-#define NBD_D_TYPE de->d_type
+-#else
+ #define NBD_D_TYPE 0
+ #define DT_UNKNOWN 0
+ #define DT_REG 1
+-#endif
+ 
+ /**
+  * Parse config file snippets in a directory. Uses readdir() and friends



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811182141.wAILfWR2049984>