Subject: sys_errlist definition
To: None <current-users@NetBSD.ORG>
From: Curt Sampson <>
List: current-users
Date: 07/02/1996 00:19:14
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to for more info.

Content-ID: <Pine.NEB.3.93.960702001851.9278J@didactic>

Now that sys_errlist is defined in errno.h, and defined correctly,
a lot of non-ANSI programs break slightly when compiled because
they also define it as just extern char * (without the const).
What's the easiest and simplist way to determine, in the general
case, whether one is running on a system that already has this
defined? I'm currently using a #ifdef __NetBSD__ around the code,
but I'd rather send back more general patches to the authors if I
can, since I'm fairly certain this change needs to be made for
FreeBSD and the like as well.


Curt Sampson		Info at
Internet Portal Services, Inc.	
Vancouver, BC   (604) 257-9400		De gustibus, aut bene aut nihil.