From cab7e88f57931fbc9130967287e8593a47f29064 Mon Sep 17 00:00:00 2001 From: merakor Date: Thu, 23 Jul 2020 08:51:13 +0000 Subject: kiss-readlink: define _XOPEN_SOURCE on the Makefile FossilOrigin-Name: f865a9075ebd59ee0205b617c8b0d511ba8213712429f34ee8a239f0396be28b --- bin/kiss-readlink.c | 1 - config.mk | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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 #include -#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 -- cgit v1.2.3