[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setsockopt on mingw
From: |
Bruno Haible |
Subject: |
Re: setsockopt on mingw |
Date: |
Sat, 26 Apr 2008 14:40:05 +0200 |
User-agent: |
KMail/1.5.4 |
Simon Josefsson wrote:
> > # if defined _WIN32 || defined __WIN32__
> > # 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,
> > socklen_t optlen)
> > {
> > return (setsockopt)(socket, level, optname, optval, optlen);
> > }
> > # endif
>
> Applied, thanks.
This uses 'inline', so needs AC_REQUIRE([AC_C_INLINE]) in the *.m4 macros.
(Otherwise a syntax error occurs when someone compiles with "gcc -ansi".)
Bruno