aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-03-10 23:41:24 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2017-03-10 23:41:24 -0500
commit9aed9d93596cdc72e305338d82ccc0dcaf85c6e2 (patch)
treeb5a3db4994970b2d0033e717771b24a92503ddac /common
parentFurther indentation corrections (diff)
downloadsway-9aed9d93596cdc72e305338d82ccc0dcaf85c6e2.tar.gz
sway-9aed9d93596cdc72e305338d82ccc0dcaf85c6e2.tar.zst
sway-9aed9d93596cdc72e305338d82ccc0dcaf85c6e2.zip
UnGNUify the codebase
Diffstat (limited to 'common')
-rw-r--r--common/CMakeLists.txt7
-rw-r--r--common/ipc-client.c3
-rw-r--r--common/log.c1
-rw-r--r--common/stringop.c1
-rw-r--r--common/util.c1
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
13 ) 13 )
14 14
15target_link_libraries(sway-common m) 15target_link_libraries(sway-common m)
16
17if(Backtrace_FOUND)
18 set_target_properties(sway-common
19 PROPERTIES
20 COMPILE_FLAGS "-include ${Backtrace_HEADER}"
21 )
22endif()
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 @@
1#include <stdint.h> 1#define _POSIX_C_SOURCE 2
2#include <stdio.h> 2#include <stdio.h>
3#include <stdint.h>
3#include <stdlib.h> 4#include <stdlib.h>
4#include <string.h> 5#include <string.h>
5#include <sys/socket.h> 6#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 @@
1#define _POSIX_C_SOURCE 1
1#include <errno.h> 2#include <errno.h>
2#include <libgen.h> 3#include <libgen.h>
3#include <signal.h> 4#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 @@
1#define _XOPEN_SOURCE 500
1#include <stdlib.h> 2#include <stdlib.h>
2#include <stdio.h> 3#include <stdio.h>
3#include <string.h> 4#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 @@
3#include <stdio.h> 3#include <stdio.h>
4#include <stdlib.h> 4#include <stdlib.h>
5#include <string.h> 5#include <string.h>
6#include <strings.h>
6#include <wlc/wlc.h> 7#include <wlc/wlc.h>
7#include <xkbcommon/xkbcommon-names.h> 8#include <xkbcommon/xkbcommon-names.h>
8#include "log.h" 9#include "log.h"