summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2019-12-31 11:48:02 +0100
committerDavid Oberhollenzer <goliath@infraroot.at>2019-12-31 12:27:11 +0100
commit027a17b2714c7db6c1824142547afaa0d1ee27e8 (patch)
tree9836e6274304438a12774e4a81d3adb055eadc48 /include
parent14e9257b9bdf03d0654641c0ccb7564fc6856c72 (diff)
Include sys/sysmacros.h on any GNU libc platform
sys/sysmacros.h is an implementation of GNU libc, so include it unconditionally when that libc is used. Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
Diffstat (limited to 'include')
-rw-r--r--include/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/compat.h b/include/compat.h
index 9051d88..5f73158 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -150,7 +150,7 @@ int chdir(const char *path);
#include <unistd.h>
#include <fcntl.h>
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
#include <sys/sysmacros.h>
#endif
#endif