hostapd/src/drivers/linux_wext.h
Jörg Krause 33c7eb810a 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>
2014-12-14 18:05:32 +02:00

45 lines
883 B
C

/*
* Driver interaction with generic Linux Wireless Extensions
* Copyright (c) 2003-2011, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef LINUX_WEXT_H
#define LINUX_WEXT_H
#ifndef ANDROID
/*
* Avoid including other kernel header to avoid conflicts with C library
* headers.
*/
#define _LINUX_TYPES_H
#define _LINUX_SOCKET_H
#define _LINUX_IF_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;
#ifndef __user
#define __user
#endif /* __user */
#endif /* ANDROID */
#include <linux/wireless.h>
#ifndef IW_ENCODE_ALG_PMK
#define IW_ENCODE_ALG_PMK 4
#endif
#ifndef IW_ENC_CAPA_4WAY_HANDSHAKE
#define IW_ENC_CAPA_4WAY_HANDSHAKE 0x00000010
#endif
#endif /* LINUX_WEXT_H */