Fix build on various architectures

This commit is contained in:
o9000
2017-09-08 17:04:10 +02:00
parent d21f758158
commit aa355e22f9
3 changed files with 7 additions and 4 deletions

View File

@@ -84,7 +84,11 @@ if( NOT IMLIB_BUILD_WITH_X )
endif( NOT IMLIB_BUILD_WITH_X )
add_definitions( -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_WITH_GETLINE )
add_definitions( -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_WITH_GETLINE )
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_definitions( -D_POSIX_C_SOURCE=200809L )
endif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
include_directories( ${PROJECT_BINARY_DIR}