diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-03-10 23:41:24 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-03-10 23:41:24 -0500 |
commit | 9aed9d93596cdc72e305338d82ccc0dcaf85c6e2 (patch) | |
tree | b5a3db4994970b2d0033e717771b24a92503ddac /common | |
parent | 74d4f1bec9a70bc800ecd7b15c9c6c0d7a5ce918 (diff) |
UnGNUify the codebase
Diffstat (limited to 'common')
-rw-r--r-- | common/CMakeLists.txt | 7 | ||||
-rw-r--r-- | common/ipc-client.c | 3 | ||||
-rw-r--r-- | common/log.c | 1 | ||||
-rw-r--r-- | common/stringop.c | 1 | ||||
-rw-r--r-- | common/util.c | 1 |
5 files changed, 5 insertions, 8 deletions
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 <stdint.h> +#define _POSIX_C_SOURCE 2 #include <stdio.h> +#include <stdint.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> 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 <errno.h> #include <libgen.h> #include <signal.h> 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 <stdlib.h> #include <stdio.h> #include <string.h> 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 <stdio.h> #include <stdlib.h> #include <string.h> +#include <strings.h> #include <wlc/wlc.h> #include <xkbcommon/xkbcommon-names.h> #include "log.h" |