Skip to content

Commit

Permalink
Compatibilty with glibc-2.23
Browse files Browse the repository at this point in the history
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 openzfs#6132
  • Loading branch information
jlec authored and behlendorf committed May 17, 2017
1 parent 5559ba0 commit 331ec1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/libspl/getmntany.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <sys/mnttab.h>

#include <sys/types.h>
#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <unistd.h>

Expand Down

0 comments on commit 331ec1a

Please sign in to comment.