diff options
author | Cem Keylan <cem@ckyln.com> | 2020-09-16 15:57:38 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-09-16 15:57:38 +0300 |
commit | ae4deee8e038beb95598ce912433e056f80d3b97 (patch) | |
tree | ccfbc973d68ae066df82f532b18f5947bd29a745 | |
parent | 79fafa3c6aa574f641d634fd3e136f29ec0ee9cf (diff) | |
download | init-ae4deee8e038beb95598ce912433e056f80d3b97.tar.gz |
shalt.c: define _XOPEN_SOURCE on Makefile
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | bin/shalt.c | 2 |
2 files changed, 2 insertions, 4 deletions
@@ -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 diff --git a/bin/shalt.c b/bin/shalt.c index e47e7df..dd64286 100644 --- a/bin/shalt.c +++ b/bin/shalt.c @@ -1,6 +1,4 @@ /* shalt -- simple halt utility */ -#define _XOPEN_SOURCE 500 - #include <stdio.h> #include <stdlib.h> #include <unistd.h> |