summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-10-13 02:29:58 +0000
committerngie <ngie@FreeBSD.org>2014-10-13 02:29:58 +0000
commitfbee57a2afc0f921e0cbf4c9dda8861722f0ac06 (patch)
tree466a8746f6384a177176418783cf4b55407cf313
parent62e17d5b26e52ce8b87a1ada46b99bf64ba8db19 (diff)
downloadFreeBSD-src-fbee57a2afc0f921e0cbf4c9dda8861722f0ac06.zip
FreeBSD-src-fbee57a2afc0f921e0cbf4c9dda8861722f0ac06.tar.gz
Add #include <stdio.h> to get sys_nerr definition
Sponsored by: EMC / Isilon Storage Division
-rw-r--r--contrib/netbsd-tests/lib/libc/string/t_strerror.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/string/t_strerror.c b/contrib/netbsd-tests/lib/libc/string/t_strerror.c
index c0e9c06..cb008d7 100644
--- a/contrib/netbsd-tests/lib/libc/string/t_strerror.c
+++ b/contrib/netbsd-tests/lib/libc/string/t_strerror.c
@@ -37,6 +37,10 @@ __RCSID("$NetBSD: t_strerror.c,v 1.3 2011/05/10 06:55:27 jruoho Exp $");
#include <locale.h>
#include <string.h>
+#if defined(__FreeBSD__)
+#include <stdio.h>
+#endif
+
ATF_TC(strerror_basic);
ATF_TC_HEAD(strerror_basic, tc)
{
OpenPOWER on IntegriCloud