From 48a74a2466f4e00ba82819b8a7ca905b96567896 Mon Sep 17 00:00:00 2001 From: downsj <> Date: Thu, 25 Jul 1996 05:47:59 +0000 Subject: [PATCH] Partially revert back to the old behaviour of declaring sys_errlist here. sys/errno.h can declare it as well. --- src/include/stdio.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/include/stdio.h b/src/include/stdio.h index 777c8001..7913621a 100644 --- a/src/include/stdio.h +++ b/src/include/stdio.h @@ -1,3 +1,4 @@ +/* $OpenBSD: stdio.h,v 1.5 1996/07/25 05:47:59 downsj Exp $ */ /* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */ /*- @@ -233,6 +234,12 @@ size_t fwrite __P((const void *, size_t, size_t, FILE *)); int getc __P((FILE *)); int getchar __P((void)); char *gets __P((char *)); +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) && !defined(__SYS_ERRLIST) +#define __SYS_ERRLIST + +extern int sys_nerr; /* perror(3) external variables */ +extern const char *const sys_errlist[]; +#endif void perror __P((const char *)); int printf __P((const char *, ...)); int putc __P((int, FILE *));