# HG changeset patch # User mmu_man # Date 1171546326 0 # Node ID d1e61f4d02cdc061341fe9095536cb25e728ccf4 # Parent 20c8dfd3ee8403951d899e43ee217026d372324d MinGW patch by , reworked. Removed placeholder for winsock. diff -r 20c8dfd3ee84 -r d1e61f4d02cd os_support.c --- a/os_support.c Thu Feb 15 07:44:10 2007 +0000 +++ b/os_support.c Thu Feb 15 13:32:06 2007 +0000 @@ -35,9 +35,14 @@ #include #endif #include + #ifndef HAVE_SYS_POLL_H +#if defined(__MINGW32__) +#include +#else #include #endif +#endif /** * gets the current time in micro seconds. diff -r 20c8dfd3ee84 -r d1e61f4d02cd os_support.h --- a/os_support.h Thu Feb 15 07:44:10 2007 +0000 +++ b/os_support.h Thu Feb 15 13:32:06 2007 +0000 @@ -32,7 +32,7 @@ * - floatf() (OS/2) * - strcasecmp() (OS/2) * - closesocket() - * - poll() (BeOS) + * - poll() (BeOS, MinGW) */ #if defined(__BEOS__) || defined(__INNOTEK_LIBC__) @@ -45,11 +45,7 @@ # define usleep(t) Sleep((t) / 1000) # include # define lseek(f,p,w) _lseeki64((f), (p), (w)) -#endif - -/* XXX: check for Winsock here */ -#if 0 -#define HAVE_CLOSESOCKET 1 +# define HAVE_CLOSESOCKET 1 #endif #ifdef __BEOS__