[Mailman-Developers] News->Mail gateways

John Viega viega@list.org
Thu, 4 Jun 1998 20:10:47 -0700


Um, whoops, s/STACK/STATIC throughout that snipit of code, I don't
know where my mind is today.

> #define STACK_BUFSIZE 8192

Anyway, Here's what I recommend we use in the dist, if and only if
strerror can't be found by the autoconf process:

extern char *sys_errlist[];
extern int sys_nerr;

 char* strerror(int errno)
 {
   if(errno < 0 || errno >= sys_nerr)
   {
     return "unknown error";
   }
   else
   {
      return sys_errlist[errno];
   }
 }