summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/asr/res_query.c3
-rw-r--r--lib/libc/asr/res_send.c3
-rw-r--r--lib/libc/gen/getprogname.c4
-rw-r--r--lib/libc/gen/isinf.c3
-rw-r--r--lib/libc/gen/isnan.c3
-rw-r--r--lib/libc/gen/setprogname.c3
-rw-r--r--lib/libc/gen/shm_open.c3
-rw-r--r--lib/libc/rpc/get_myaddress.c3
8 files changed, 17 insertions, 8 deletions
diff --git a/lib/libc/asr/res_query.c b/lib/libc/asr/res_query.c
index eed33d78307..72401af31b5 100644
--- a/lib/libc/asr/res_query.c
+++ b/lib/libc/asr/res_query.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: res_query.c,v 1.5 2013/07/12 14:36:22 eric Exp $ */
+/* $OpenBSD: res_query.c,v 1.6 2013/11/12 06:09:50 deraadt Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -21,6 +21,7 @@
#include <errno.h>
#include <resolv.h>
#include <string.h>
+#include <stdlib.h>
#include "asr.h"
diff --git a/lib/libc/asr/res_send.c b/lib/libc/asr/res_send.c
index 054eca5e39e..7c6152e258c 100644
--- a/lib/libc/asr/res_send.c
+++ b/lib/libc/asr/res_send.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: res_send.c,v 1.5 2013/07/12 14:36:22 eric Exp $ */
+/* $OpenBSD: res_send.c,v 1.6 2013/11/12 06:09:50 deraadt Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -21,6 +21,7 @@
#include <errno.h>
#include <resolv.h>
#include <string.h>
+#include <stdlib.h>
#include "asr.h"
diff --git a/lib/libc/gen/getprogname.c b/lib/libc/gen/getprogname.c
index 1cf498c8806..17046abc927 100644
--- a/lib/libc/gen/getprogname.c
+++ b/lib/libc/gen/getprogname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getprogname.c,v 1.2 2013/05/31 21:19:01 tedu Exp $ */
+/* $OpenBSD: getprogname.c,v 1.3 2013/11/12 06:09:48 deraadt Exp $ */
/*
* Copyright (c) 2013 Antoine Jacoutot <ajacoutot@openbsd.org>
*
@@ -15,6 +15,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <stdlib.h>
+
extern const char *__progname;
const char *
diff --git a/lib/libc/gen/isinf.c b/lib/libc/gen/isinf.c
index db8daa52eaa..ad260495909 100644
--- a/lib/libc/gen/isinf.c
+++ b/lib/libc/gen/isinf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isinf.c,v 1.9 2013/07/03 04:46:36 espie Exp $ */
+/* $OpenBSD: isinf.c,v 1.10 2013/11/12 06:09:48 deraadt Exp $ */
/*
* Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org>
*
@@ -18,6 +18,7 @@
#include <sys/types.h>
#include <machine/ieee.h>
#include <float.h>
+#include <math.h>
int
__isinf(double d)
diff --git a/lib/libc/gen/isnan.c b/lib/libc/gen/isnan.c
index 344d2ed97e9..5ee34be7fe3 100644
--- a/lib/libc/gen/isnan.c
+++ b/lib/libc/gen/isnan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isnan.c,v 1.8 2013/07/03 04:46:36 espie Exp $ */
+/* $OpenBSD: isnan.c,v 1.9 2013/11/12 06:09:48 deraadt Exp $ */
/*
* Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org>
*
@@ -18,6 +18,7 @@
#include <sys/types.h>
#include <machine/ieee.h>
#include <float.h>
+#include <math.h>
int
__isnan(double d)
diff --git a/lib/libc/gen/setprogname.c b/lib/libc/gen/setprogname.c
index 18b2ce03b87..089a15ae29a 100644
--- a/lib/libc/gen/setprogname.c
+++ b/lib/libc/gen/setprogname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: setprogname.c,v 1.3 2013/06/01 01:43:43 tedu Exp $ */
+/* $OpenBSD: setprogname.c,v 1.4 2013/11/12 06:09:48 deraadt Exp $ */
/*
* Copyright (c) 2013 Antoine Jacoutot <ajacoutot@openbsd.org>
*
@@ -16,6 +16,7 @@
*/
#include <string.h>
+#include <stdlib.h>
extern const char *__progname;
diff --git a/lib/libc/gen/shm_open.c b/lib/libc/gen/shm_open.c
index ccbe82a6c70..4e15bfa6689 100644
--- a/lib/libc/gen/shm_open.c
+++ b/lib/libc/gen/shm_open.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shm_open.c,v 1.3 2013/10/25 19:42:18 tedu Exp $ */
+/* $OpenBSD: shm_open.c,v 1.4 2013/11/12 06:09:48 deraadt Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
/* SHA256_DIGEST_STRING_LENGTH includes nul */
/* "/tmp/" + sha256 + ".shm" */
diff --git a/lib/libc/rpc/get_myaddress.c b/lib/libc/rpc/get_myaddress.c
index 9ab13c63cd9..72e39494742 100644
--- a/lib/libc/rpc/get_myaddress.c
+++ b/lib/libc/rpc/get_myaddress.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: get_myaddress.c,v 1.13 2010/09/01 14:43:34 millert Exp $ */
+/* $OpenBSD: get_myaddress.c,v 1.14 2013/11/12 06:09:50 deraadt Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -40,6 +40,7 @@
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <rpc/pmap_prot.h>
+#include <rpc/rpc.h>
#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>