aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-02 10:47:59 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-02 10:48:52 +0100
commitf0cf62abae4e9c4e479b015327b38d837cba9512 (patch)
tree20126a77dac26e78f345a34b1ea16e59c0715fe0
parent9f8f8a49c5f8d4bbd85058dfc0cdf26038bcddb8 (diff)
downloadbuildroot-f0cf62abae4e9c4e479b015327b38d837cba9512.tar.gz
buildroot-f0cf62abae4e9c4e479b015327b38d837cba9512.tar.bz2
nfs-utils: add patch to fix build with glibc 2.28
Fixes: http://autobuild.buildroot.net/results/feb2b42028f7035f791db9cb76d07ead55d7733a/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/nfs-utils/0006-Include-sys-sysmacros.h-where-appropriate.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/package/nfs-utils/0006-Include-sys-sysmacros.h-where-appropriate.patch b/package/nfs-utils/0006-Include-sys-sysmacros.h-where-appropriate.patch
new file mode 100644
index 0000000000..a593ca3b6f
--- /dev/null
+++ b/package/nfs-utils/0006-Include-sys-sysmacros.h-where-appropriate.patch
@@ -0,0 +1,50 @@
+From e3918d70b0b4a1d0f5421318e542ec807833da3f Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
+Date: Fri, 2 Nov 2018 10:45:21 +0100
+Subject: [PATCH] Include <sys/sysmacros.h> where appropriate
+
+Since glibc 2.28, the major() and minor() macros need to explicitly
+include <sys/sysmacros.h>.
+
+Patch initially contributed by
+Timothy Pearson <tpearson@raptorengineering.com>.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
+---
+ support/nfs/nfsexport.c | 4 ++++
+ utils/mountd/cache.c | 4 ++++
+ 2 files changed, 8 insertions(+)
+
+diff --git a/support/nfs/nfsexport.c b/support/nfs/nfsexport.c
+index afd7c90..a7cbc14 100644
+--- a/support/nfs/nfsexport.c
++++ b/support/nfs/nfsexport.c
+@@ -17,6 +17,10 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+
++#ifdef __GLIBC__
++#include <sys/sysmacros.h>
++#endif
++
+ #include "nfslib.h"
+ #include "misc.h"
+
+diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
+index 179ea18..61f9b14 100644
+--- a/utils/mountd/cache.c
++++ b/utils/mountd/cache.c
+@@ -36,6 +36,10 @@
+ #include "blkid/blkid.h"
+ #endif
+
++#ifdef __GLIBC__
++#include <sys/sysmacros.h>
++#endif
++
+ /*
+ * Invoked by RPC service loop
+ */
+--
+2.14.4
+