aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-07-04 02:49:46 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-07-04 02:50:00 +0200
commitab5941aaefb9a5cc38d8aa4adedc3a4d411889c0 (patch)
treec371743d4dfba1604b98ef028bf706c7540edef1
parent84d6c658e8e3ffb03210ab0ac7a710f166bfed29 (diff)
downloadjson-rpc-shell-ab5941aaefb9a5cc38d8aa4adedc3a4d411889c0.tar.gz
json-rpc-shell-ab5941aaefb9a5cc38d8aa4adedc3a4d411889c0.tar.xz
json-rpc-shell-ab5941aaefb9a5cc38d8aa4adedc3a4d411889c0.zip
CMakeLists.txt: fix build on macOS
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e38f2f8..ddde69f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)