From: Felix Fietkau Date: Thu, 5 May 2016 17:46:21 +0000 (+0100) Subject: Only include sys/sysmacros.h on glibc, it is not portable X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmake_ext4fs.git;a=commitdiff_plain;h=3af931b0b6545757aaeadb13f9bb9da0296fc172;hp=bf98b86a5df5fcfb658d77fd5e0897ca87a35e8e;ds=sidebyside Only include sys/sysmacros.h on glibc, it is not portable Signed-off-by: Felix Fietkau --- 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