all repos — tint2 @ 4ee2f4e7de0bf8b4a85e53aacc0c8d0f4d46d4a5

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

Fix compilation under FreeBSD
o9000 mrovi9000@gmail.com
commit

4ee2f4e7de0bf8b4a85e53aacc0c8d0f4d46d4a5

parent

1567e56a0924df836343f67ea1432d7dc5e7a617

4 files changed, 6 insertions(+), 7 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -82,7 +82,9 @@ 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 ) +#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 ) include_directories( ${PROJECT_BINARY_DIR} src

@@ -243,7 +245,7 @@

target_link_libraries( tint2 m ) add_dependencies( tint2 version ) -set_target_properties( tint2 PROPERTIES COMPILE_FLAGS "-Wall -Wpointer-arith -fno-strict-aliasing -pthread -std=c99 ${ASAN_C_FLAGS}" ) +set_target_properties( tint2 PROPERTIES COMPILE_FLAGS "-Wall -Wpointer-arith -fno-strict-aliasing -pthread -std=c11 ${ASAN_C_FLAGS}" ) set_target_properties( tint2 PROPERTIES LINK_FLAGS "-pthread -fno-strict-aliasing ${ASAN_L_FLAGS} ${BACKTRACE_L_FLAGS}" ) install( TARGETS tint2 DESTINATION bin )
M src/launcher/apps-common.csrc/launcher/apps-common.c

@@ -26,6 +26,7 @@ #include <glib.h>

#include <stdio.h> #include <stdlib.h> #include <string.h> +#include <strings.h> static gint compare_strings(gconstpointer a, gconstpointer b) {
M src/tint.csrc/tint.c

@@ -269,10 +269,6 @@ case SIGVTALRM:

return "SIGVTALRM: Virtual alarm clock (4.2 BSD)."; case SIGPROF: return "SIGPROF: Profiling alarm clock (4.2 BSD)."; - case SIGWINCH: - return "SIGWINCH: Window size change (4.3 BSD, Sun)."; - case SIGIO: - return "SIGIO: Pollable event occurred (System V) / I/O now possible (4.2 BSD)."; // case SIGPWR: return "SIGPWR: Power failure restart (System V)."; case SIGSYS: return "SIGSYS: Bad system call.";
M src/tint2conf/CMakeLists.txtsrc/tint2conf/CMakeLists.txt

@@ -63,7 +63,7 @@

add_definitions( -DINSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\" ) add_definitions( -DLOCALEDIR=\"${CMAKE_INSTALL_FULL_LOCALEDIR}\" ) add_definitions( -DGETTEXT_PACKAGE=\"tint2conf\" ) -set_target_properties( tint2conf PROPERTIES COMPILE_FLAGS "-Wall -pthread -std=c99" ) +set_target_properties( tint2conf PROPERTIES COMPILE_FLAGS "-Wall -pthread -std=c11" ) set_target_properties( tint2conf PROPERTIES LINK_FLAGS "-pthread" ) add_subdirectory(po)