Fix building on OpenBSD

Otherwise build breaks complaining about vasprintf() missing due to the
use of _POSIX_C_SOURCE.
This commit is contained in:
Brad Smith 2023-05-28 01:56:51 -04:00
parent c533187e24
commit 94aed7a101

View File

@ -404,7 +404,7 @@ if(NOT MSVC)
add_definitions(-Wno-psabi)
endif()
add_definitions(-D_XOPEN_SOURCE=700)
add_definitions(-D_XOPEN_SOURCE_EXTENDED -D__BSD_VISIBLE=1)
add_definitions(-D_XOPEN_SOURCE_EXTENDED -D__BSD_VISIBLE=1 -D_BSD_SOURCE)
add_definitions(-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64)
elseif(ANDROID)
add_definitions(-fsigned-char)