From 9aed9d93596cdc72e305338d82ccc0dcaf85c6e2 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 10 Mar 2017 23:41:24 -0500 Subject: UnGNUify the codebase --- common/CMakeLists.txt | 7 ------- common/ipc-client.c | 3 ++- common/log.c | 1 + common/stringop.c | 1 + common/util.c | 1 + 5 files changed, 5 insertions(+), 8 deletions(-) (limited to 'common') diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 3d6e0fb9..11119eeb 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -13,10 +13,3 @@ add_library(sway-common STATIC ) target_link_libraries(sway-common m) - -if(Backtrace_FOUND) - set_target_properties(sway-common - PROPERTIES - COMPILE_FLAGS "-include ${Backtrace_HEADER}" - ) -endif() diff --git a/common/ipc-client.c b/common/ipc-client.c index d011bd26..1ab6627b 100644 --- a/common/ipc-client.c +++ b/common/ipc-client.c @@ -1,5 +1,6 @@ -#include +#define _POSIX_C_SOURCE 2 #include +#include #include #include #include diff --git a/common/log.c b/common/log.c index 825b176b..c3809c69 100644 --- a/common/log.c +++ b/common/log.c @@ -1,3 +1,4 @@ +#define _POSIX_C_SOURCE 1 #include #include #include diff --git a/common/stringop.c b/common/stringop.c index 432bee7f..99e9636d 100644 --- a/common/stringop.c +++ b/common/stringop.c @@ -1,3 +1,4 @@ +#define _XOPEN_SOURCE 500 #include #include #include diff --git a/common/util.c b/common/util.c index 73704afd..12ed0cdc 100644 --- a/common/util.c +++ b/common/util.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include "log.h" -- cgit v1.2.3-70-g09d2