From 027a17b2714c7db6c1824142547afaa0d1ee27e8 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 31 Dec 2019 11:48:02 +0100 Subject: 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 --- include/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 #include -#ifdef __linux__ +#if defined(__linux__) || defined(__GLIBC__) #include #endif #endif -- cgit v1.2.3