]> granicus.if.org Git - libevent/commit
Check existence of IPV6_V6ONLY in evutil_make_listen_socket_ipv6only() (mingw32)
authorAzat Khuzhin <a3at.mail@gmail.com>
Sun, 28 Oct 2018 15:11:22 +0000 (18:11 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sat, 2 Feb 2019 12:18:01 +0000 (15:18 +0300)
commit1c865238527f7e18fec2ce94dae31b93b2b92ce2
tree9186da8812f7391b447aa3dfb19e28957bc2d7d0
parent12e0d88911a31159db68d01213b4ff5405f37169
Check existence of IPV6_V6ONLY in evutil_make_listen_socket_ipv6only() (mingw32)

MinGW 32-bit 5.3.0 does not defines it and our appveyour [1] build
reports this instantly:
    evutil.c: In function 'evutil_make_listen_socket_ipv6only':
    evutil.c:392:40: error: 'IPV6_V6ONLY' undeclared (first use in this function)
      return setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (void*) &one,

  [1]: https://www.appveyor.com/docs/windows-images-software/#mingw-msys-cygwin

Another solution will be to use mingw64 which has it, but I guess we do
want that #ifdef anyway.

(cherry picked from commit 23e79fd764b9f36f560d470f0fb60295dd942ac2)
evutil.c
include/event2/util.h