projects
/
project
/
make_ext4fs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf98b86
)
Only include sys/sysmacros.h on glibc, it is not portable
author
Felix Fietkau
<nbd@nbd.name>
Thu, 5 May 2016 17:46:21 +0000
(18:46 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Thu, 5 May 2016 17:46:32 +0000
(18:46 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
ext4_utils.h
patch
|
blob
|
history
diff --git
a/ext4_utils.h
b/ext4_utils.h
index
f7c4b7f
..
71f1cd6
100644
(file)
--- a/
ext4_utils.h
+++ b/
ext4_utils.h
@@
-27,7
+27,11
@@
extern "C" {
#define _FILE_OFFSET_BITS 64
#define _LARGEFILE64_SOURCE 1
#include <sys/types.h>
+
+#ifdef __GLIBC__
#include <sys/sysmacros.h>
+#endif
+
#include <unistd.h>
#include <errno.h>
#include <stdarg.h>