FreeBSD fixes

Increase _POSIX_SOURCE value where needed.
Increase _XOPEN_SOURCE value where needed.
Conditionally link to libcap (only on Linux).
Possibly some trailing whitespace fixes (automatic).
This commit is contained in:
johalun 2017-06-05 13:44:29 +02:00
parent 5ed533a943
commit 7fef283044
15 changed files with 20 additions and 19 deletions

View file

@ -66,7 +66,10 @@ find_package(GdkPixbuf)
find_package(PAM)
find_package(LibInput REQUIRED)
find_package(Libcap REQUIRED)
if (CMAKE_SYSTEM_NAME STREQUAL Linux)
find_package(Libcap REQUIRED)
endif (CMAKE_SYSTEM_NAME STREQUAL Linux)
if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
find_package(EpollShim REQUIRED)