aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
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
)
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"