aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-07-23 08:51:13 +0000
committermerakor <cem@ckyln.com>2020-07-23 08:51:13 +0000
commitcab7e88f57931fbc9130967287e8593a47f29064 (patch)
tree41105e3e30995b22ff3ffe200487d2d36b4eebd8
parentca472fb8e9384951bc16b18ecf7f50da86edb9b2 (diff)
downloadcpt-cab7e88f57931fbc9130967287e8593a47f29064.tar.gz
kiss-readlink: define _XOPEN_SOURCE on the Makefile
FossilOrigin-Name: f865a9075ebd59ee0205b617c8b0d511ba8213712429f34ee8a239f0396be28b
-rw-r--r--bin/kiss-readlink.c1
-rw-r--r--config.mk1
2 files changed, 1 insertions, 1 deletions
diff --git a/bin/kiss-readlink.c b/bin/kiss-readlink.c
index 825b74d..e65c0d9 100644
--- a/bin/kiss-readlink.c
+++ b/bin/kiss-readlink.c
@@ -9,7 +9,6 @@
#include <string.h>
#include <limits.h>
-#define _XOPEN_SOURCE 700
char *realpath(const char *path, char *resolved_path);
diff --git a/config.mk b/config.mk
index 0cc3f5b..316594b 100644
--- a/config.mk
+++ b/config.mk
@@ -11,6 +11,7 @@ MAN1 = ${MANPREFIX}/man1
# Flags
CFLAGS = -std=c99 -Wpedantic -Wall -Os
+CFLAGS += -D_XOPEN_SOURCE=700
LDFLAGS = -s -static
LIBS = -lc