cmake: set _POSIX_C_SOURCE instead of _XOPEN_SOURCE

On Maemo we set _GNU_SOURCE instead because of its old glibc.
This commit is contained in:
Sebastian Krzyszkowiak 2019-10-06 08:00:32 +02:00
parent 7cca01b4b8
commit 861850aafb
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -37,7 +37,10 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
)
add_definitions(-DLIBSUPERDERPY_GIT_REV="${LIBSUPERDERPY_GIT_REV}")
add_definitions(-D_XOPEN_SOURCE=600)
add_definitions(-D_POSIX_C_SOURCE=200809L)
if (MAEMO5)
add_definitions(-D_GNU_SOURCE)
endif (MAEMO5)
add_definitions(-DLIBSUPERDERPY_ORIENTATION_${LIBSUPERDERPY_ORIENTATION}=true)