Fix compilation under Linux
This commit is contained in:
parent
4ee2f4e7de
commit
d6a40c7523
1 changed files with 6 additions and 2 deletions
|
@ -82,9 +82,13 @@ if( NOT IMLIB_BUILD_WITH_X )
|
|||
message( FATAL_ERROR "Imlib is not built with X support" )
|
||||
endif( NOT IMLIB_BUILD_WITH_X )
|
||||
|
||||
#add_definitions( -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 -D_WITH_GETLINE )
|
||||
|
||||
add_definitions( -D_WITH_GETLINE )
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
add_definitions( -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_DEFAULT_SOURCE )
|
||||
else(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
add_definitions( -D_WITH_GETLINE )
|
||||
endif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
|
||||
|
||||
include_directories( ${PROJECT_BINARY_DIR}
|
||||
src
|
||||
|
|
Loading…
Reference in a new issue