From edd849800a6b2623dc01082b3520b49182328235 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Tue, 16 Nov 2021 11:55:24 +0100 Subject: CMakeLists.txt: fix macOS build --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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} -- cgit v1.2.3-70-g09d2