comparison lib/sys_socket.in.h @ 9992:57789763312c

Fix proper win32 checks and use of inline for setsockopt. Reported by Bruno Haible <bruno@clisp.org>.
author Simon Josefsson <simon@josefsson.org>
date Mon, 28 Apr 2008 16:38:34 +0200
parents 2efe37d5c70d
children f96e845fc36d
comparison
equal deleted inserted replaced
9991:7aa7cfaff758 9992:57789763312c
100 # define ECONNRESET WSAECONNRESET 100 # define ECONNRESET WSAECONNRESET
101 # define ENOTCONN WSAENOTCONN 101 # define ENOTCONN WSAENOTCONN
102 # define ESHUTDOWN WSAESHUTDOWN 102 # define ESHUTDOWN WSAESHUTDOWN
103 # endif 103 # endif
104 104
105 # if defined _WIN32 || defined __WIN32__ 105 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
106 # define setsockopt(a,b,c,d,e) rpl_setsockopt(a,b,c,d,e) 106 # define setsockopt(a,b,c,d,e) rpl_setsockopt(a,b,c,d,e)
107 static inline int 107 static inline int
108 rpl_setsockopt(int socket, int level, int optname, const void *optval, 108 rpl_setsockopt(int socket, int level, int optname, const void *optval,
109 socklen_t optlen) 109 socklen_t optlen)
110 { 110 {