aboutsummaryrefslogtreecommitdiff
path: root/src/openrc-shutdown/openrc-shutdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/openrc-shutdown/openrc-shutdown.c')
-rw-r--r--src/openrc-shutdown/openrc-shutdown.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/openrc-shutdown/openrc-shutdown.c b/src/openrc-shutdown/openrc-shutdown.c
index a2fae5f5..c73d8e6d 100644
--- a/src/openrc-shutdown/openrc-shutdown.c
+++ b/src/openrc-shutdown/openrc-shutdown.c
@@ -19,6 +19,7 @@
* except according to the terms contained in the LICENSE file.
*/
+#include <errno.h>
#include <getopt.h>
#include <signal.h>
#include <stdbool.h>
@@ -26,9 +27,11 @@
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
-#include <unistd.h>
#include <sys/types.h>
-#include <sys/utsname.h>
+#include <strings.h>
+#include <unistd.h>
+#include <time.h>
+#include <utmp.h>
#include "broadcast.h"
#include "einfo.h"