CMakeLists.txt: fix build on macOS

This commit is contained in:
Přemysl Eric Janouch 2023-07-04 02:49:46 +02:00
parent 84d6c658e8
commit ab5941aaef
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ if ("${CMAKE_SYSTEM_NAME}" MATCHES "BSD")
# Need this for SIGWINCH in FreeBSD and OpenBSD respectively;
# our POSIX version macros make it undefined
add_definitions (-D__BSD_VISIBLE=1 -D_BSD_SOURCE=1)
elseif (APPLE)
add_definitions (-D_DARWIN_C_SOURCE)
endif ()
if (ncursesw_FOUND)