Skip to content

Commit

Permalink
use proper platform defines for IPv6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mman committed Mar 8, 2024
1 parent 87b5005 commit b51ccf8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ if(HAS_SOCKLEN_T)
add_definitions(-DHAS_SOCKLEN_T=1)
endif()

add_definitions(-D_GNU_SOURCE=1)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_definitions(-D_GNU_SOURCE=1)
endif()

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_definitions(-D__APPLE_USE_RFC_3542=1)
endif()

include_directories(${PROJECT_SOURCE_DIR}/include)

Expand Down

0 comments on commit b51ccf8

Please sign in to comment.