diff options
author | Cem Keylan <cem@ckyln.com> | 2020-08-15 01:06:01 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-08-15 01:06:01 +0300 |
commit | 0f9f0fca713952e980a4d7aa057e2d82259b7770 (patch) | |
tree | fe6e08f53c18e5aa61b4cab86ae68fd4dd1ff932 | |
parent | ea6727af788da0cbddbdc270e18464a7f33e2e0a (diff) | |
download | init-0f9f0fca713952e980a4d7aa057e2d82259b7770.tar.gz |
shalt: define '_XOPEN_SOURCE' value
-rw-r--r-- | bin/shalt.c | 4 |
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" |