some magic to make w32api happy when using a [arch]-linux compiler rather than mingw32

svn path=/trunk/; revision=15924
This commit is contained in:
Steven Edwards 2005-06-15 19:45:28 +00:00
parent 87ee9dfafb
commit 6dfaa9b3a5
2 changed files with 9 additions and 1 deletions

View file

@ -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_)

View file

@ -96,8 +96,10 @@ if (__i == ((fd_set *)(set))->fd_count) {\
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 htonl(u_long);
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);