]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wext: Fix musl build error
authorJörg Krause <jkrause@posteo.de>
Wed, 3 Dec 2014 21:43:44 +0000 (22:43 +0100)
committerJouni Malinen <j@w1.fi>
Sun, 14 Dec 2014 16:05:32 +0000 (18:05 +0200)
Building wpa_supplicant with the musl C library fails since musl does
not define type names such as '__uint32_t'. To support building
wpa_supplicant with the musl C library use the integer types declared in
the ISO C standard header file <stdint.h>.

Signed-off-by: Jörg Krause <jkrause@posteo.de>
src/drivers/linux_wext.h

index 55cf95531808a1f8d269e1446fd7567bfd6adaa8..e7c7001e1ceaa33d914470773d8aaf0b1ba138ef 100644 (file)
 #define _LINUX_SOCKET_H
 #define _LINUX_IF_H
 
-#include <sys/types.h>
+#include <stdint.h>
 #include <net/if.h>
-typedef __uint32_t __u32;
-typedef __int32_t __s32;
-typedef __uint16_t __u16;
-typedef __int16_t __s16;
-typedef __uint8_t __u8;
+typedef uint32_t __u32;
+typedef int32_t __s32;
+typedef uint16_t __u16;
+typedef int16_t __s16;
+typedef uint8_t __u8;
 #ifndef __user
 #define __user
 #endif /* __user */