]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Android: Modify wireless_copy.h to fix Android build
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 1 Sep 2011 15:51:09 +0000 (18:51 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 2 Sep 2011 13:50:43 +0000 (16:50 +0300)
src/drivers/wireless_copy.h

index 201719b642c87e6bb9b7f5e8b7adc5174edf0cd1..d01f4cb3de93761e608d7193862b3ba9a7709402 100644 (file)
 /***************************** INCLUDES *****************************/
 
  /* jkm - replaced linux headers with C library headers, added typedefs */
-#if 0
+#ifdef ANDROID
 #include <linux/types.h>               /* for __u* and __s* typedefs */
 #include <linux/socket.h>              /* for "struct sockaddr" et al  */
 #include <linux/if.h>                  /* for IFNAMSIZ and co... */
-#else
+#else /* ANDROID */
 #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 */
-#endif
+#endif /* ANDROID */
 
 /***************************** VERSION *****************************/
 /*