diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-02-25 07:28:33 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-02-25 07:28:33 +0000 |
commit | 6b3631ebf5744993aff6637b366dbb5654aa8292 (patch) | |
tree | 34b33b593056c7b91544b1a7345454721a2edbd2 /regress/lib | |
parent | a6f423d9085871741eaad903f691caa938ab3075 (diff) |
Add missing includes to avoid implicit function declarations.
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libc/dirname/dirname_test.c | 1 | ||||
-rw-r--r-- | regress/lib/libc/ifnameindex/ifnitest.c | 3 | ||||
-rw-r--r-- | regress/lib/libc/locale/setlocale/setlocale.c | 3 | ||||
-rw-r--r-- | regress/lib/libc/strtod/strtodtest.c | 3 | ||||
-rw-r--r-- | regress/lib/libedit/chared/test_gets.c | 1 | ||||
-rw-r--r-- | regress/lib/libutil/fmt_scaled/fmt_test.c | 3 |
6 files changed, 10 insertions, 4 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. diff --git a/regress/lib/libedit/chared/test_gets.c b/regress/lib/libedit/chared/test_gets.c index 29d2d886128..306c6ba5708 100644 --- a/regress/lib/libedit/chared/test_gets.c +++ b/regress/lib/libedit/chared/test_gets.c @@ -19,6 +19,7 @@ #include <locale.h> #include <stdio.h> #include <wchar.h> +#include <err.h> #include "chared.c" diff --git a/regress/lib/libutil/fmt_scaled/fmt_test.c b/regress/lib/libutil/fmt_scaled/fmt_test.c index 6ef8c836eb6..05dfa8bc997 100644 --- a/regress/lib/libutil/fmt_scaled/fmt_test.c +++ b/regress/lib/libutil/fmt_scaled/fmt_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fmt_test.c,v 1.11 2016/08/14 23:08:09 guenther Exp $ */ +/* $OpenBSD: fmt_test.c,v 1.12 2017/02/25 07:28:32 jsg Exp $ */ /* * Combined tests for fmt_scaled and scan_scaled. @@ -10,6 +10,7 @@ #include <string.h> #include <sys/types.h> #include <errno.h> +#include <unistd.h> #include <util.h> |