miniupnpc: bump the _POSIX_C_SOURCE feature macro
FreeBSD doesn't expose IPv6 structures without this.
This commit is contained in:
parent
c696492549
commit
d855fe4e89
2
external/miniupnpc/CMakeLists.txt
vendored
2
external/miniupnpc/CMakeLists.txt
vendored
@ -16,7 +16,7 @@ endif ()
|
|||||||
|
|
||||||
if (NOT WIN32)
|
if (NOT WIN32)
|
||||||
add_definitions (-DMINIUPNPC_SET_SOCKET_TIMEOUT)
|
add_definitions (-DMINIUPNPC_SET_SOCKET_TIMEOUT)
|
||||||
add_definitions (-D_BSD_SOURCE -D_POSIX_C_SOURCE=1)
|
add_definitions (-D_BSD_SOURCE -D_POSIX_C_SOURCE=201112)
|
||||||
else ()
|
else ()
|
||||||
add_definitions (-D_WIN32_WINNT=0x0501) # XP or higher for getnameinfo and friends
|
add_definitions (-D_WIN32_WINNT=0x0501) # XP or higher for getnameinfo and friends
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user