some magic to make w32api happy when using a [arch]-linux compiler rather than mingw32
Modified: trunk/reactos/w32api/include/winnt.h
Modified: trunk/reactos/w32api/include/winsock2.h

Modified: trunk/reactos/w32api/include/winnt.h
--- trunk/reactos/w32api/include/winnt.h	2005-06-15 17:51:54 UTC (rev 15923)
+++ trunk/reactos/w32api/include/winnt.h	2005-06-15 19:45:28 UTC (rev 15924)
@@ -19,6 +19,9 @@
 #define _X86_
 #elif defined(_M_ALPHA) && !defined(_ALPHA_)
 #define _ALPHA_
+
+#elif defined(_M_ARM) && !defined(ARM)
+#define ARM
 #elif defined(_M_PPC) && !defined(_PPC_)
 #define _PPC_
 #elif defined(_M_MRX000) && !defined(_MIPS_)

Modified: trunk/reactos/w32api/include/winsock2.h
--- trunk/reactos/w32api/include/winsock2.h	2005-06-15 17:51:54 UTC (rev 15923)
+++ trunk/reactos/w32api/include/winsock2.h	2005-06-15 19:45:28 UTC (rev 15924)
@@ -96,8 +96,10 @@
     This may cause runtime problems with W32 sockets"
 #endif /* ndef _SYS_TYPES_FD_SET */
 #if !(defined (__INSIDE_CYGWIN__) || (__INSIDE_MSYS__))
-#ifndef _TIMEVAL_DEFINED /* also in sys/time.h */
+#ifndef _TIMEVAL_DEFINED
+/* also in sys/time.h */
 #define _TIMEVAL_DEFINED
+#define _STRUCT_TIMEVAL
 struct timeval {
 	long    tv_sec;
 	long    tv_usec;
@@ -562,7 +564,10 @@
 u_long PASCAL ntohl(u_long);
 u_short PASCAL htons(u_short);
 u_short PASCAL ntohs(u_short);
+#ifndef _SYS_SELECT_H /* Work around for Linux Compilers */ 
+#define _SYS_SELECT_H
 int PASCAL select(int nfds,fd_set*,fd_set*,fd_set*,const struct timeval*);
+#endif
 #endif /* ! (__INSIDE_CYGWIN__ || __INSIDE_MSYS__) */
 
 int PASCAL gethostname(char*,int);