make_ext4fs: fix build on musl systems
authorJohannes Kimmel <freifunk@mail.bareminimum.eu>
Fri, 6 Dec 2019 17:05:16 +0000 (18:05 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 7 Dec 2019 13:49:14 +0000 (14:49 +0100)
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

index a5c1ae0167da17c04cad34c63ee3bd8de7be6ec8..bfc48ed27ba27c00664329bb828807a5247b8b82 100644 (file)
@@ -28,7 +28,7 @@ extern "C" {
 #define _LARGEFILE64_SOURCE 1
 #include <sys/types.h>
 
-#ifdef __GLIBC__
+#ifndef __APPLE__
 #include <sys/sysmacros.h>
 #endif