diff options
| author | Přemysl Eric Janouch <p@janouch.name> | 2021-11-02 17:17:32 +0100 | 
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2021-11-02 17:17:32 +0100 | 
| commit | 6bd8c1db2fa84b414db73cfde842dfb31b039913 (patch) | |
| tree | bec4db59b15bf7b6675fc03ebf171168f5b12424 | |
| parent | 56efe9c6a958a0bf02e48379e3627bd7faa07265 (diff) | |
| download | nncmpp-6bd8c1db2fa84b414db73cfde842dfb31b039913.tar.gz nncmpp-6bd8c1db2fa84b414db73cfde842dfb31b039913.tar.xz nncmpp-6bd8c1db2fa84b414db73cfde842dfb31b039913.zip | |
CMakeLists.txt: fix macOS build
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | nncmpp.c | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/CMakeLists.txt b/CMakeLists.txt index f5db727..5e60a17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,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 ()  include (CheckFunctionExists) @@ -78,9 +78,7 @@ enum  #include <math.h>  #include <locale.h>  #include <termios.h> -#ifndef TIOCGWINSZ  #include <sys/ioctl.h> -#endif  // ! TIOCGWINSZ  // ncurses is notoriously retarded for input handling, we need something  // different if only to receive mouse events reliably. | 
