4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-11 10:19:33 +00:00

use _DEFAULT_SOURCE instead of _BSD_SOURCE

the former is used in other kde software in general, and
the latter is generally deprecated on modern glibc's
This commit is contained in:
Rex Dieter 2015-11-19 13:23:16 -06:00
parent 4c9f27270e
commit 1ff36f4030

@ -115,7 +115,7 @@ endif (WIN32)
if (CMAKE_COMPILER_IS_GNUCXX)
if (CMAKE_SYSTEM_NAME MATCHES Linux)
add_definitions (-D_BSD_SOURCE)
add_definitions (-D_DEFAULT_SOURCE)
# on arm -Wcast-align throws many internal qt warning
if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wcast-align")