From 3af931b0b6545757aaeadb13f9bb9da0296fc172 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 5 May 2016 18:46:21 +0100 Subject: [PATCH 1/1] Only include sys/sysmacros.h on glibc, it is not portable Signed-off-by: Felix Fietkau --- ext4_utils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext4_utils.h b/ext4_utils.h index f7c4b7f..71f1cd6 100644 --- a/ext4_utils.h +++ b/ext4_utils.h @@ -27,7 +27,11 @@ extern "C" { #define _FILE_OFFSET_BITS 64 #define _LARGEFILE64_SOURCE 1 #include + +#ifdef __GLIBC__ #include +#endif + #include #include #include -- 2.11.0