Module Name: src
Committed By: christos
Date: Tue Jan 10 20:25:48 UTC 2017
Modified Files:
src/lib/libc/string: strerror_r.c
Log Message:
PR/51814: Ngie Cooper: add <stdio.h> since sys_nerr is declared there on
FreeBSD.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/string/strerror_r.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/string/strerror_r.c
diff -u src/lib/libc/string/strerror_r.c:1.3 src/lib/libc/string/strerror_r.c:1.4
--- src/lib/libc/string/strerror_r.c:1.3 Mon Aug 19 09:03:12 2013
+++ src/lib/libc/string/strerror_r.c Tue Jan 10 15:25:48 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: strerror_r.c,v 1.3 2013/08/19 13:03:12 joerg Exp $ */
+/* $NetBSD: strerror_r.c,v 1.4 2017/01/10 20:25:48 christos Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@@ -30,13 +30,14 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: strerror_r.c,v 1.3 2013/08/19 13:03:12 joerg Exp $");
+__RCSID("$NetBSD: strerror_r.c,v 1.4 2017/01/10 20:25:48 christos Exp $");
#include "namespace.h"
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
+#include <stdio.h> /* for sys_nerr on FreeBSD */
#ifdef NLS
#include <limits.h>
#include <nl_types.h>