From: Jörg Krause Date: Wed, 3 Dec 2014 21:43:44 +0000 (+0100) Subject: wext: Fix musl build error X-Git-Tag: hostap_2_4~777 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33c7eb810a33ff80bfe6f6c87b3602e042e95f22;p=thirdparty%2Fhostap.git wext: Fix musl build error 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 . Signed-off-by: Jörg Krause --- diff --git a/src/drivers/linux_wext.h b/src/drivers/linux_wext.h index 55cf95531..e7c7001e1 100644 --- a/src/drivers/linux_wext.h +++ b/src/drivers/linux_wext.h @@ -19,13 +19,13 @@ #define _LINUX_SOCKET_H #define _LINUX_IF_H -#include +#include #include -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 */