summaryrefslogtreecommitdiffstats
path: root/utils/mountd/cache.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-04-27 12:57:08 -0400
committerSteve Dickson <steved@redhat.com>2016-04-27 13:24:40 -0400
commit4ac4b4f74dcec30dcb23aab827eed152db08daea (patch)
treedc1afec4f1e083eb6d0908049109d99bc382a15b /utils/mountd/cache.c
parent623f537916a67f96decda3ce9ed8d70edf92c0cd (diff)
downloadnfs-utils-4ac4b4f74dcec30dcb23aab827eed152db08daea.tar.gz
nfs-utils-4ac4b4f74dcec30dcb23aab827eed152db08daea.tar.xz
nfs-utils-4ac4b4f74dcec30dcb23aab827eed152db08daea.zip
fix building w/newer C libraries
Linux C libraries are moving away from implicitly including the header sys/sysmacros.h via sys/types.h. We would like to do this for glibc now, but others (musl/etc...) have been doing it already. This means any code using major/minor/makedevs functions will fail to build when they don't include that header. Leverage the AC_HEADER_MAJOR macro that configure is already using to pull in the right header. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mountd/cache.c')
-rw-r--r--utils/mountd/cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index 7847446..ec86a22 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -31,6 +31,7 @@
#include "mountd.h"
#include "fsloc.h"
#include "pseudoflavors.h"
+#include "xcommon.h"
#ifdef USE_BLKID
#include "blkid/blkid.h"