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.
This commit is contained in:
parent
47c64bfcc7
commit
c4d4aebe69
1 changed files with 2 additions and 0 deletions
|
@ -84,11 +84,13 @@
|
||||||
#else
|
#else
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
#ifndef ANDROID
|
||||||
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;
|
||||||
|
#endif /* ANDROID */
|
||||||
#ifndef __user
|
#ifndef __user
|
||||||
#define __user
|
#define __user
|
||||||
#endif /* __user */
|
#endif /* __user */
|
||||||
|
|
Loading…
Reference in a new issue