From ae4deee8e038beb95598ce912433e056f80d3b97 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 16 Sep 2020 15:57:38 +0300 Subject: shalt.c: define _XOPEN_SOURCE on Makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index be66946..b9f4ba9 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ BINDIR = ${PREFIX}/bin CONFDIR = /etc/init CC = cc -CFLAGS = -std=c99 -Wall -pedantic +CFLAGS = -std=c99 -Wall -pedantic -D_XOPEN_SOURCE=500 LDFLAGS = -static BIN = bin/shalt @@ -19,7 +19,7 @@ all: ${BIN} clean: rm -f ${BIN} ${OBJ} -install: bin/shalt +install: ${BIN} mkdir -p ${DESTDIR}${CONFDIR} ${DESTDIR}${INITDIR} ${DESTDIR}${BINDIR} cp bin/shalt ${DESTDIR}${BINDIR}/shalt chmod 755 ${DESTDIR}${BINDIR}/shalt -- cgit v1.2.3