Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/string PR/51814: Ngie Cooper: add <stdio.h> since s...
details: https://anonhg.NetBSD.org/src/rev/25e391c6736a
branches: trunk
changeset: 350355:25e391c6736a
user: christos <christos%NetBSD.org@localhost>
date: Tue Jan 10 20:25:48 2017 +0000
description:
PR/51814: Ngie Cooper: add <stdio.h> since sys_nerr is declared there on
FreeBSD.
diffstat:
lib/libc/string/strerror_r.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 5ec1ad3eea3c -r 25e391c6736a lib/libc/string/strerror_r.c
--- a/lib/libc/string/strerror_r.c Tue Jan 10 20:08:52 2017 +0000
+++ b/lib/libc/string/strerror_r.c Tue Jan 10 20:25:48 2017 +0000
@@ -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>
Home |
Main Index |
Thread Index |
Old Index