summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorDavid Krause <david@cvs.openbsd.org>2003-08-02 01:24:38 +0000
committerDavid Krause <david@cvs.openbsd.org>2003-08-02 01:24:38 +0000
commitbb9c508606ec678987fdff045b51692b9a94fff4 (patch)
treedfb3b2df3f049059ee009ffa0ffcaa281ffa8b7b /regress/lib
parent23c48bb9313c4f573d08c508b80f786d2436fa3f (diff)
add missing includes
ok deraadt@ tedu@
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/csu/dtors/dtors.c3
-rw-r--r--regress/lib/libc/alloca/alloca.c3
-rw-r--r--regress/lib/libc/popen/popen.c1
3 files changed, 5 insertions, 2 deletions
diff --git a/regress/lib/csu/dtors/dtors.c b/regress/lib/csu/dtors/dtors.c
index 99b0ef86193..13593e160e8 100644
--- a/regress/lib/csu/dtors/dtors.c
+++ b/regress/lib/csu/dtors/dtors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dtors.c,v 1.3 2002/02/18 11:09:48 art Exp $ */
+/* $OpenBSD: dtors.c,v 1.4 2003/08/02 01:24:35 david Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org>, 2002 Public Domain.
*/
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <string.h>
#include <err.h>
+#include <unistd.h>
void zap(void) __attribute__((destructor));
diff --git a/regress/lib/libc/alloca/alloca.c b/regress/lib/libc/alloca/alloca.c
index 1c264292933..14ef87b29ad 100644
--- a/regress/lib/libc/alloca/alloca.c
+++ b/regress/lib/libc/alloca/alloca.c
@@ -1,8 +1,9 @@
-/* $OpenBSD: alloca.c,v 1.4 2003/07/31 21:48:02 deraadt Exp $ */
+/* $OpenBSD: alloca.c,v 1.5 2003/08/02 01:24:36 david Exp $ */
/* Written by Michael Shalayeff, 2003, Public Domain. */
#include <stdio.h>
+#include <string.h>
int
main(int argc, char *argv[])
diff --git a/regress/lib/libc/popen/popen.c b/regress/lib/libc/popen/popen.c
index 491c5becea1..95ea67f31bf 100644
--- a/regress/lib/libc/popen/popen.c
+++ b/regress/lib/libc/popen/popen.c
@@ -38,6 +38,7 @@
#include <sys/param.h>
+#include <err.h>
#include <errno.h>
#include <paths.h>
#include <stdio.h>