summaryrefslogtreecommitdiffstats
path: root/package/nfs-utils/nfs-utils-0004-fix-build-with-uClibc.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-10 11:42:42 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-11-14 23:00:16 +0100
commit9f0c314674cb8f9d79d30540359d1df7f564d37e (patch)
tree49a314d978c8d5b55499676bdf0570661dbc7ef4 /package/nfs-utils/nfs-utils-0004-fix-build-with-uClibc.patch
parentc54af0a294de09ecb8699d0d9a0fca8b39247a79 (diff)
downloadbuildroot-novena-9f0c314674cb8f9d79d30540359d1df7f564d37e.tar.gz
buildroot-novena-9f0c314674cb8f9d79d30540359d1df7f564d37e.zip
nfs-utils: reformat patch set as git patches
As we will need to add more patches to nfs-utils, we need a correct ordering when applying patches. Therefore, reformat the patches to use a git format and git naming. The nfs-utils-dont-mix-flags.patch is no longer needed as it was patching Makefile.in files that were being regenerated due to the package having _AUTORECONF = YES. The Makefile.in are properly regenerated thanks to the nfs-utils-0002-Patch-taken-from-Gentoo.patch patch. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/nfs-utils/nfs-utils-0004-fix-build-with-uClibc.patch')
-rw-r--r--package/nfs-utils/nfs-utils-0004-fix-build-with-uClibc.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/nfs-utils/nfs-utils-0004-fix-build-with-uClibc.patch b/package/nfs-utils/nfs-utils-0004-fix-build-with-uClibc.patch
new file mode 100644
index 000000000..23da28f20
--- /dev/null
+++ b/package/nfs-utils/nfs-utils-0004-fix-build-with-uClibc.patch
@@ -0,0 +1,31 @@
+From ff82d4c89d6ca771dea06bbaa06ddf3fed760402 Mon Sep 17 00:00:00 2001
+From: Peter Korsgaard <jacmet@sunsite.dk>
+Date: Sat, 10 Nov 2012 18:58:48 +0100
+Subject: [PATCH] fix build with uClibc
+
+uClibc doesn't have/need libio.h, so don't include it from sockaddr.h
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ support/include/sockaddr.h | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/support/include/sockaddr.h b/support/include/sockaddr.h
+index 9af2543..5eef2ec 100644
+--- a/support/include/sockaddr.h
++++ b/support/include/sockaddr.h
+@@ -20,7 +20,10 @@
+ #ifndef NFS_UTILS_SOCKADDR_H
+ #define NFS_UTILS_SOCKADDR_H
+
+-#include <libio.h>
++/* uClibc doesn't have/need libio.h */
++#ifndef __UCLIBC__
++#include <libio.h>
++#endif
+ #include <stdbool.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+--
+1.7.9.5
+