summaryrefslogtreecommitdiff
path: root/regress/lib/libpthread/socket
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2001-09-20 16:43:17 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2001-09-20 16:43:17 +0000
commit6f37323ba7b6bb6a6b9ec40c4c94eb3706bb16a7 (patch)
tree2e8240ce28e38ebfbd56fba15360eb491d7b9af6 /regress/lib/libpthread/socket
parentbc86ffda7a6a90b9c49f5428131dac2e1fe2f0b1 (diff)
per man page and gcc 3.0.1, exit requires prototype from stdlib.h
Diffstat (limited to 'regress/lib/libpthread/socket')
-rw-r--r--regress/lib/libpthread/socket/2/socket2.c3
-rw-r--r--regress/lib/libpthread/socket/2a/socket2a.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/regress/lib/libpthread/socket/2/socket2.c b/regress/lib/libpthread/socket/2/socket2.c
index 5b3b51fda57..70747544a65 100644
--- a/regress/lib/libpthread/socket/2/socket2.c
+++ b/regress/lib/libpthread/socket/2/socket2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: socket2.c,v 1.1 2001/08/15 14:37:10 fgsch Exp $ */
+/* $OpenBSD: socket2.c,v 1.2 2001/09/20 16:43:16 todd Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors,
* proven@mit.edu All rights reserved.
@@ -51,6 +51,7 @@
#include <netinet/in.h>
#include <unistd.h>
#include <string.h>
+#include <stdlib.h>
#include "test.h"
struct sockaddr_in a_sout;
diff --git a/regress/lib/libpthread/socket/2a/socket2a.c b/regress/lib/libpthread/socket/2a/socket2a.c
index 551b925065d..96278cd981c 100644
--- a/regress/lib/libpthread/socket/2a/socket2a.c
+++ b/regress/lib/libpthread/socket/2a/socket2a.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: socket2a.c,v 1.1 2001/08/15 14:37:10 fgsch Exp $ */
+/* $OpenBSD: socket2a.c,v 1.2 2001/09/20 16:43:16 todd Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996 by Chris Provenzano and contributors,
* proven@mit.edu All rights reserved.
@@ -49,6 +49,7 @@
#include <netinet/in.h>
#include <unistd.h>
#include <string.h>
+#include <stdlib.h>
#include "test.h"
struct sockaddr_in a_sout;