aboutsummaryrefslogtreecommitdiff
path: root/bin/shalt.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/shalt.c')
-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"