aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-08-15 01:06:01 +0300
committerCem Keylan <cem@ckyln.com>2020-08-15 01:06:01 +0300
commit0f9f0fca713952e980a4d7aa057e2d82259b7770 (patch)
treefe6e08f53c18e5aa61b4cab86ae68fd4dd1ff932 /bin
parentea6727af788da0cbddbdc270e18464a7f33e2e0a (diff)
downloadinit-0f9f0fca713952e980a4d7aa057e2d82259b7770.tar.gz
shalt: define '_XOPEN_SOURCE' value
Diffstat (limited to 'bin')
-rw-r--r--bin/shalt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/shalt.c b/bin/shalt.c
index 9dc0028..e47e7df 100644
--- a/bin/shalt.c
+++ b/bin/shalt.c
@@ -1,8 +1,10 @@
/* shalt -- simple halt utility */
-#include <sys/reboot.h>
+#define _XOPEN_SOURCE 500
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <sys/reboot.h>
static char *argv0;
#include "arg.h"