Subject: FVWM: strerror: working patch on sunos 4.1.3

From: [email-masked] (Albrecht Kadlec)
Date: Tue, 30 Apr 96 15:03:28 +0200

my errno.h doesn't even declare sys_errlist[] and sys_nerr

And that sprintf needs a character buffer to construct the result in, as a
first argument!!!!

and sun_headers.h should be included in builtins.c

sun_headers should have:

extern char *sys_errlist[];
extern int sys_nerr;

#define strerror(err) ((err < sys_nerr) ? sys_errlist[err] : "Unknown errno")

albrecht
-- 
If you love it, set it free. 
If it doesn't come back, hunt it down and kill it. -- (maybe) James McGregor
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [email-masked].
To report problems, send mail to [email-masked].