ソースを参照

nfs-utils: fix glibc build

Waldemar Brodkorb 9 年 前
コミット
689658b944

+ 0 - 2
package/atftp/Makefile

@@ -16,8 +16,6 @@ PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=atftp/}
 
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
 
-PKG_LIBC_DEPENDS:=	uclibc-ng glibc
-
 PKG_SUBPKGS:=		ATFTP ATFTPD
 PKGSD_ATFTPD:=		tftp server
 PKGSS_ATFTPD:=		libreadline libncurses

+ 5 - 3
package/nfs-utils/patches/patch-utils_mount_network_c

@@ -1,10 +1,12 @@
 --- nfs-utils-1.3.4.orig/utils/mount/network.c	2016-08-03 20:25:15.000000000 +0200
-+++ nfs-utils-1.3.4/utils/mount/network.c	2016-10-08 18:01:13.000000000 +0200
-@@ -38,7 +38,6 @@
++++ nfs-utils-1.3.4/utils/mount/network.c	2016-10-20 19:16:18.000000000 +0200
+@@ -38,7 +38,9 @@
  #include <sys/socket.h>
  #include <sys/wait.h>
  #include <sys/stat.h>
--#include <linux/in6.h>
++#if defined(__GLIBC__)
+ #include <linux/in6.h>
++#endif
  #include <netinet/in.h>
  #include <rpc/rpc.h>
  #include <rpc/pmap_prot.h>