diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-10-29 03:46:39 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-10-29 18:14:41 +0100 |
commit | f4999a63a54d726a4c4e0bca45b740b310c9d941 (patch) | |
tree | 359bd1a50b7b97395d3d583c6ccb1ad3adf82396 /CMakeLists.txt | |
parent | 33b4976d7a1d23f31a46eb0acc9ece8d8dfd821d (diff) | |
download | nncmpp-f4999a63a54d726a4c4e0bca45b740b310c9d941.tar.gz nncmpp-f4999a63a54d726a4c4e0bca45b740b310c9d941.tar.xz nncmpp-f4999a63a54d726a4c4e0bca45b740b310c9d941.zip |
CMakeLists.txt: make this build in OpenBSD
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 00f7ad7..00b1d03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,12 @@ include (CheckFunctionExists) set (CMAKE_REQUIRED_LIBRARIES ${Ncursesw_LIBRARIES}) CHECK_FUNCTION_EXISTS ("resizeterm" HAVE_RESIZETERM) +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) +endif () + # Generate a configuration file configure_file (${PROJECT_SOURCE_DIR}/config.h.in ${PROJECT_BINARY_DIR}/config.h) |