Mercurial > hg > octave-shane > gnulib-hg
diff 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 |
line wrap: on
line diff
--- a/lib/sys_socket.in.h +++ b/lib/sys_socket.in.h @@ -102,7 +102,7 @@ # define ESHUTDOWN WSAESHUTDOWN # endif -# if defined _WIN32 || defined __WIN32__ +# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ # define setsockopt(a,b,c,d,e) rpl_setsockopt(a,b,c,d,e) static inline int rpl_setsockopt(int socket, int level, int optname, const void *optval,