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 <stdint.h>.

Signed-off-by: Jörg Krause <jkrause@posteo.de>
This commit is contained in:
Jörg Krause 2014-12-03 22:43:44 +01:00 committed by Jouni Malinen
parent 7c4027f604
commit 33c7eb810a

View file

@ -19,13 +19,13 @@
#define _LINUX_SOCKET_H #define _LINUX_SOCKET_H
#define _LINUX_IF_H #define _LINUX_IF_H
#include <sys/types.h> #include <stdint.h>
#include <net/if.h> #include <net/if.h>
typedef __uint32_t __u32; typedef uint32_t __u32;
typedef __int32_t __s32; typedef int32_t __s32;
typedef __uint16_t __u16; typedef uint16_t __u16;
typedef __int16_t __s16; typedef int16_t __s16;
typedef __uint8_t __u8; typedef uint8_t __u8;
#ifndef __user #ifndef __user
#define __user #define __user
#endif /* __user */ #endif /* __user */