diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-07-25 05:48:00 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-07-25 05:48:00 +0000 |
commit | 612709ed1c97e222a51b67599b490939a984734c (patch) | |
tree | c2352cc2b4baddcfab38b3b58c10e8f5f579eb7f | |
parent | 8a5eb5526d7c9223583ec836384bdfbe786bbfa8 (diff) |
Partially revert back to the old behaviour of declaring sys_errlist here.
sys/errno.h can declare it as well.
-rw-r--r-- | include/stdio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h index 777c8001a50..7913621a488 100644 --- a/include/stdio.h +++ b/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 *)); |