# HG changeset patch # User alex # Date 1186604732 0 # Node ID 43b803972ffdd5c18438de8a119b485577b9f461 # Parent fb72d949bae39b63c9bd6de481b7c66c1a8d93f9 use proper closesocket defines diff -r fb72d949bae3 -r 43b803972ffd os_support.h --- a/os_support.h Wed Aug 08 19:18:10 2007 +0000 +++ b/os_support.h Wed Aug 08 20:25:32 2007 +0000 @@ -45,17 +45,10 @@ # define lseek(f,p,w) _lseeki64((f), (p), (w)) #endif -#ifdef HAVE_WINSOCK2_H -# define HAVE_CLOSESOCKET 1 -#endif - #ifdef __BEOS__ # include # include /* not net_server ? */ -# if IPPROTO_TCP != 6 -# define HAVE_CLOSESOCKET 1 -# endif # include /* R5 didn't have usleep, fake it. Haiku and Zeta has it now. */ # if B_BEOS_VERSION <= B_BEOS_VERSION_5 @@ -70,7 +63,7 @@ #endif /* most of the time closing a socket is just closing an fd */ -#if HAVE_CLOSESOCKET != 1 +#ifndef HAVE_CLOSESOCKET #define closesocket close #endif