From c0ce02a9363647049ea351fc92466959c5b2cca3 Mon Sep 17 00:00:00 2001 From: mycroft Date: Thu, 9 Oct 1997 11:33:03 +0000 Subject: [PATCH] Use __const rather than const for sys_errlist, so it DTRT with -traditional. Also, make sys_nerr __const. Partly from Todd Vierling in PR 4151. --- sys/sys/errno.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/sys/errno.h b/sys/sys/errno.h index e0b1f97c3ac1..a51995179eb7 100644 --- a/sys/sys/errno.h +++ b/sys/sys/errno.h @@ -1,4 +1,4 @@ -/* $NetBSD: errno.h,v 1.15 1997/07/08 20:23:42 christos Exp $ */ +/* $NetBSD: errno.h,v 1.16 1997/10/09 11:33:03 mycroft Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -55,8 +55,8 @@ extern int *__errno __P((void)); #endif #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE) -extern int sys_nerr; -extern const char *const sys_errlist[]; +extern __const int sys_nerr; +extern __const char *__const sys_errlist[]; #endif __END_DECLS #endif /* !_KERNEL */