diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-11-16 11:55:24 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-11-16 11:55:24 +0100 |
commit | edd849800a6b2623dc01082b3520b49182328235 (patch) | |
tree | da462638713da79ae183ea730fcef9d1c4f2a67b | |
parent | 023d69bdbfa41bdfbd624b58fd2f30dd3cf1a625 (diff) | |
download | neetdraw-edd849800a6b2623dc01082b3520b49182328235.tar.gz neetdraw-edd849800a6b2623dc01082b3520b49182328235.tar.xz neetdraw-edd849800a6b2623dc01082b3520b49182328235.zip |
CMakeLists.txt: fix macOS build
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c502b4d..4b78dbe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,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 () set (project_libraries ${LibEV_LIBRARIES} ${Termo_LIBRARIES} |