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

Johannes Kimmel freifunk at bareminimum.eu
Fri Dec 6 12:05:16 EST 2019


From: Johannes Kimmel <freifunk at 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 at mail.bareminimum.eu>
---
 ext4_utils.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 
-- 
2.24.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list