aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-02-25 11:36:17 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-25 11:36:17 (GMT)
commitc4d4aebe69ac10d610d724210ccfcd2104a17af8 (patch)
treec1c30e335040ac43ef7a9da0f1ca44636850d60f /src
parent47c64bfcc78eceef87a75aa56832bfce795453f6 (diff)
downloadhostap-c4d4aebe69ac10d610d724210ccfcd2104a17af8.zip
hostap-c4d4aebe69ac10d610d724210ccfcd2104a17af8.tar.gz
hostap-c4d4aebe69ac10d610d724210ccfcd2104a17af8.tar.bz2
wext: Do not include typedefs for Android build
Android build gets __u32 and friends from bionic/libc/kernel/arch-x86/asm/types.h and having the typedefs here causes redefinition errors.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/wireless_copy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/wireless_copy.h b/src/drivers/wireless_copy.h
index 9d5ca3b..201719b 100644
--- a/src/drivers/wireless_copy.h
+++ b/src/drivers/wireless_copy.h
@@ -84,11 +84,13 @@
#else
#include <sys/types.h>
#include <net/if.h>
+#ifndef ANDROID
typedef __uint32_t __u32;
typedef __int32_t __s32;
typedef __uint16_t __u16;
typedef __int16_t __s16;
typedef __uint8_t __u8;
+#endif /* ANDROID */
#ifndef __user
#define __user
#endif /* __user */