Skip to content

Commit

Permalink
Merge pull request #18114 from jbeich/bsd
Browse files Browse the repository at this point in the history
Unbreak build on FreeBSD
  • Loading branch information
hrydgard committed Sep 9, 2023
2 parents d18dea4 + 9472e7e commit 4878640
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Expand Up @@ -425,7 +425,9 @@ if(NOT MSVC)
endif()
add_definitions(-D_XOPEN_SOURCE=700)
add_definitions(-D_XOPEN_SOURCE_EXTENDED -D__BSD_VISIBLE=1 -D_BSD_SOURCE -D_DEFAULT_SOURCE)
add_definitions(-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64)
if(CMAKE_SYSTEM_NAME MATCHES "Linux|SunOS" OR MINGW)
add_definitions(-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64)
endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL "NetBSD")
add_definitions(-D_NETBSD_SOURCE)
endif()
Expand Down

0 comments on commit 4878640

Please sign in to comment.