From 331ec1a1ad8c920fd3ddd98964a155c84db852b8 Mon Sep 17 00:00:00 2001
From: Justin Lecher <jlec@gentoo.org>
Date: Wed, 17 May 2017 01:00:16 +0100
Subject: [PATCH] Compatibilty with glibc-2.23

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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/libspl/getmntany.c b/lib/libspl/getmntany.c
index 9e071c7ce..43e523e4a 100644
--- a/lib/libspl/getmntany.c
+++ b/lib/libspl/getmntany.c
@@ -34,6 +34,7 @@
 #include <sys/mnttab.h>
 
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 #include <sys/stat.h>
 #include <unistd.h>
 
-- 
2.40.0