Skip to content

Commit 3af931b

Browse files
committed
Only include sys/sysmacros.h on glibc, it is not portable
Signed-off-by: Felix Fietkau <[email protected]>
1 parent bf98b86 commit 3af931b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext4_utils.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ extern "C" {
2727
#define _FILE_OFFSET_BITS 64
2828
#define _LARGEFILE64_SOURCE 1
2929
#include <sys/types.h>
30+
31+
#ifdef __GLIBC__
3032
#include <sys/sysmacros.h>
33+
#endif
34+
3135
#include <unistd.h>
3236
#include <errno.h>
3337
#include <stdarg.h>

0 commit comments

Comments
 (0)