summaryrefslogtreecommitdiff
path: root/regress/lib/libc
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-02-25 07:28:33 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-02-25 07:28:33 +0000
commit6b3631ebf5744993aff6637b366dbb5654aa8292 (patch)
tree34b33b593056c7b91544b1a7345454721a2edbd2 /regress/lib/libc
parenta6f423d9085871741eaad903f691caa938ab3075 (diff)
Add missing includes to avoid implicit function declarations.
Diffstat (limited to 'regress/lib/libc')
-rw-r--r--regress/lib/libc/dirname/dirname_test.c1
-rw-r--r--regress/lib/libc/ifnameindex/ifnitest.c3
-rw-r--r--regress/lib/libc/locale/setlocale/setlocale.c3
-rw-r--r--regress/lib/libc/strtod/strtodtest.c3
4 files changed, 7 insertions, 3 deletions
diff --git a/regress/lib/libc/dirname/dirname_test.c b/regress/lib/libc/dirname/dirname_test.c
index add76980cfd..27d32b6edaf 100644
--- a/regress/lib/libc/dirname/dirname_test.c
+++ b/regress/lib/libc/dirname/dirname_test.c
@@ -11,6 +11,7 @@
#include <string.h>
#include <limits.h>
#include <errno.h>
+#include <err.h>
int
main(void)
diff --git a/regress/lib/libc/ifnameindex/ifnitest.c b/regress/lib/libc/ifnameindex/ifnitest.c
index 512f90e24d6..fb7ed3704f1 100644
--- a/regress/lib/libc/ifnameindex/ifnitest.c
+++ b/regress/lib/libc/ifnameindex/ifnitest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifnitest.c,v 1.2 2016/08/27 04:29:25 guenther Exp $ */
+/* $OpenBSD: ifnitest.c,v 1.3 2017/02/25 07:28:32 jsg Exp $ */
/* Public domain. 2015, Claudio Jeker */
@@ -7,6 +7,7 @@
#include <net/if.h>
#include <err.h>
#include <stdio.h>
+#include <string.h>
int
main(int argc, char *argv[])
diff --git a/regress/lib/libc/locale/setlocale/setlocale.c b/regress/lib/libc/locale/setlocale/setlocale.c
index 5b4cb638704..f2a84275350 100644
--- a/regress/lib/libc/locale/setlocale/setlocale.c
+++ b/regress/lib/libc/locale/setlocale/setlocale.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: setlocale.c,v 1.2 2015/08/23 07:33:50 guenther Exp $ */
+/* $OpenBSD: setlocale.c,v 1.3 2017/02/25 07:28:32 jsg Exp $ */
/*
* Copyright (c) 2015 Sebastien Marie <semarie@openbsd.org>
*
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <ctype.h>
/*
* test helpers for __LINE__
diff --git a/regress/lib/libc/strtod/strtodtest.c b/regress/lib/libc/strtod/strtodtest.c
index 0291365a757..570a002b185 100644
--- a/regress/lib/libc/strtod/strtodtest.c
+++ b/regress/lib/libc/strtod/strtodtest.c
@@ -1,9 +1,10 @@
-/* $OpenBSD: strtodtest.c,v 1.1 2006/09/29 11:00:24 otto Exp $ */
+/* $OpenBSD: strtodtest.c,v 1.2 2017/02/25 07:28:32 jsg Exp $ */
/* Public domain, Otto Moerbeek <otto@drijf.net>, 2006. */
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
+#include <err.h>
/*
* Checks if strtod() reports underflow.