diff mbox series

[OpenWrt-Devel] make_ext4fs: fix build on musl systems

Message ID 20191206170516.21798-1-freifunk@bareminimum.eu
State Accepted
Delegated to: Hauke Mehrtens
Headers show
Series [OpenWrt-Devel] make_ext4fs: fix build on musl systems | expand

Commit Message

Johannes Kimmel Dec. 6, 2019, 5:05 p.m. UTC
From: Johannes Kimmel <freifunk@mail.bareminimum.eu>

Include sys/sysmacros.h on all systems, except MACOS.

The previous change only included the header on glibc systems:
3af931b0b6545757aaeadb13f9bb9da0296fc172

Signed-off-by: Johannes Kimmel <freifunk@mail.bareminimum.eu>
---
 ext4_utils.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ext4_utils.h b/ext4_utils.h
index a5c1ae0..bfc48ed 100644
--- a/ext4_utils.h
+++ b/ext4_utils.h
@@ -28,7 +28,7 @@  extern "C" {
 #define _LARGEFILE64_SOURCE 1
 #include <sys/types.h>
 
-#ifdef __GLIBC__
+#ifndef __APPLE__
 #include <sys/sysmacros.h>
 #endif