diff options
author | Yang Tse <yangsita@gmail.com> | 2009-06-19 00:41:03 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-06-19 00:41:03 +0000 |
commit | 2c0c05e96d8b611e1f5eedea518fa1a7857804c9 (patch) | |
tree | 2003c508150ca0dfb70ff71bbdd2be0fae76d314 /lib/setup.h | |
parent | d6d63147b6a5f425b1601b0576483937fe9f99d1 (diff) |
sclose() function-like macro definition used to close a socket,
now solely based on HAVE_CLOSESOCKET and HAVE_CLOSESOCKET_CAMEL
config file preprocessor definitions.
Diffstat (limited to 'lib/setup.h')
-rw-r--r-- | lib/setup.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/setup.h b/lib/setup.h index 1ca3e9b9d..25ca451f3 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -341,7 +341,6 @@ #endif /* Below we define some functions. They should - 1. close a socket 4. set the SIGALRM signal timeout 5. set dir/file naming defines @@ -349,12 +348,6 @@ #ifdef WIN32 -# if !defined(__CYGWIN__) -# define sclose(x) closesocket(x) -# else -# define sclose(x) close(x) -# endif - # define DIR_CHAR "\\" # define DOT_CHAR "_" @@ -363,7 +356,6 @@ # ifdef MSDOS /* Watt-32 */ # include <sys/ioctl.h> -# define sclose(x) close_s(x) # define select(n,r,w,x,t) select_s(n,r,w,x,t) # define ioctl(x,y,z) ioctlsocket(x,y,(char *)(z)) # include <tcp.h> @@ -374,21 +366,8 @@ # undef byte # endif -# else /* MSDOS */ - -# ifdef __BEOS__ -# define sclose(x) closesocket(x) -# else /* __BEOS__ */ -# define sclose(x) close(x) -# endif /* __BEOS__ */ - # endif /* MSDOS */ -# ifdef _AMIGASF -# undef sclose -# define sclose(x) CloseSocket(x) -# endif - # ifdef __minix /* Minix 3 versions up to at least 3.1.3 are missing these prototypes */ extern char * strtok_r(char *s, const char *delim, char **last); |