summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-15 04:41:09 +0000
committerderaadt <deraadt@openbsd.org>2015-10-15 04:41:09 +0000
commit666622ee3f33452a057eda5fe87eccc36a155a6e (patch)
tree7043344cf2900f0bee37039e0f95be3ccfe12886 /usr.sbin/installboot
parentfsck_ffs has a ^T signal handler which opens /dev/tty late. Hoist that (diff)
downloadwireguard-openbsd-666622ee3f33452a057eda5fe87eccc36a155a6e.tar.xz
wireguard-openbsd-666622ee3f33452a057eda5fe87eccc36a155a6e.zip
give up; include stdlib.h from the .h file, sigh
Diffstat (limited to 'usr.sbin/installboot')
-rw-r--r--usr.sbin/installboot/installboot.h4
-rw-r--r--usr.sbin/installboot/stubs.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/installboot/installboot.h b/usr.sbin/installboot/installboot.h
index 82961c9c366..996a574dcc9 100644
--- a/usr.sbin/installboot/installboot.h
+++ b/usr.sbin/installboot/installboot.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: installboot.h,v 1.8 2015/10/14 14:13:12 jsg Exp $ */
+/* $OpenBSD: installboot.h,v 1.9 2015/10/15 04:41:09 deraadt Exp $ */
/*
* Copyright (c) 2012, 2013 Joel Sing <jsing@openbsd.org>
*
@@ -15,6 +15,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <stdlib.h>
+
extern int nowrite;
extern int stages;
extern int verbose;
diff --git a/usr.sbin/installboot/stubs.c b/usr.sbin/installboot/stubs.c
index a4b80d90f58..ced93a1daf8 100644
--- a/usr.sbin/installboot/stubs.c
+++ b/usr.sbin/installboot/stubs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stubs.c,v 1.3 2015/10/14 17:54:46 deraadt Exp $ */
+/* $OpenBSD: stubs.c,v 1.4 2015/10/15 04:41:10 deraadt Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
@@ -16,7 +16,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdlib.h>
#include <err.h>
#include "installboot.h"