all repos — tint2 @ d6a40c7523c200bce19357d80cc5ff32fb580628

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Fix compilation under Linux
o9000 mrovi9000@gmail.com
commit

d6a40c7523c200bce19357d80cc5ff32fb580628

parent

4ee2f4e7de0bf8b4a85e53aacc0c8d0f4d46d4a5

1 files changed, 6 insertions(+), 2 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -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