summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2010-06-20 17:57:10 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2010-06-20 17:57:10 +0000
commit0c810681cef1a35d4919e45f36e45116454f92d6 (patch)
treef0a272931c83f6a7dd9a6dbe09cfbba4f49dfdab /regress
parent2246f68b3276b17053023c83d282183284cf33ea (diff)
Add some missing includes, so we do not have implicit function
declarations. OK miod@, millert@
Diffstat (limited to 'regress')
-rw-r--r--regress/libexec/ld.so/edgecases/test3/libbb/bb.c4
-rw-r--r--regress/sys/kern/sigsuspend/sigsuspend.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/regress/libexec/ld.so/edgecases/test3/libbb/bb.c b/regress/libexec/ld.so/edgecases/test3/libbb/bb.c
index 85eca098724..aa2c933f37d 100644
--- a/regress/libexec/ld.so/edgecases/test3/libbb/bb.c
+++ b/regress/libexec/ld.so/edgecases/test3/libbb/bb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bb.c,v 1.1 2005/09/23 19:02:29 kurt Exp $ */
+/* $OpenBSD: bb.c,v 1.2 2010/06/20 17:57:09 phessler Exp $ */
/*
* Copyright (c) 2005 Kurt Miller <kurt@openbsd.org>
@@ -16,6 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <stdio.h>
+
int weakFunction1(void) __attribute__((weak));
int weakFunction2(void) __attribute__((weak));
diff --git a/regress/sys/kern/sigsuspend/sigsuspend.c b/regress/sys/kern/sigsuspend/sigsuspend.c
index 2f8e0a92e97..d32de50474b 100644
--- a/regress/sys/kern/sigsuspend/sigsuspend.c
+++ b/regress/sys/kern/sigsuspend/sigsuspend.c
@@ -1,8 +1,11 @@
-/* $OpenBSD: sigsuspend.c,v 1.1 2005/05/31 09:27:28 art Exp $ */
+/* $OpenBSD: sigsuspend.c,v 1.2 2010/06/20 17:57:09 phessler Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org> 2005, Public domain.
*/
+
+#include <stdlib.h>
#include <signal.h>
+#include <string.h>
#include <unistd.h>
#include <err.h>
#include <sys/types.h>