]> granicus.if.org Git - zfs/commitdiff
Compatibilty with glibc-2.23
authorJustin Lecher <jlec@gentoo.org>
Wed, 17 May 2017 00:00:16 +0000 (01:00 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 17 May 2017 00:00:16 +0000 (17:00 -0700)
In glibc-2.23 <sys/sysmacros.h> isn't automatically included in
<sys/types.h> [1], so we need ot explicitely include it.

https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Closes #6132

lib/libspl/getmntany.c

index 9e071c7ce446710591b07b2ddfe148b6edd40066..43e523e4a58920e154999c5b6a467f945336dd75 100644 (file)
@@ -34,6 +34,7 @@
 #include <sys/mnttab.h>
 
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 #include <sys/stat.h>
 #include <unistd.h>