From 6b3631ebf5744993aff6637b366dbb5654aa8292 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 25 Feb 2017 07:28:33 +0000 Subject: Add missing includes to avoid implicit function declarations. --- regress/lib/libc/dirname/dirname_test.c | 1 + regress/lib/libc/ifnameindex/ifnitest.c | 3 ++- regress/lib/libc/locale/setlocale/setlocale.c | 3 ++- regress/lib/libc/strtod/strtodtest.c | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) (limited to 'regress/lib/libc') 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 #include #include +#include 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 #include #include +#include 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 * @@ -20,6 +20,7 @@ #include #include #include +#include /* * 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 , 2006. */ #include #include #include +#include /* * Checks if strtod() reports underflow. -- cgit v1.2.3