FVWM: PATCH: fvwm-2.0.42 for SunOS (strerror)

From: Larry Schwimmer <rosebud_at_cyclone.Stanford.EDU>
Date: Thu, 6 Jun 1996 18:15:05 -0700 (PDT)

        Hi! According the the docs, this is the place where
I am supposed to mail bug reports/patches. Anyhow, fvwm2.0.42 (the
latest I could locate) does not compile under SunOS, which does not
have strerror in its libc. I used an implementation of strerror
that I wrote for this patch.
        In unrelated matters, could you please upload fvwm2 to
ftp.x.org and also announce new versions on comp.os.linux.announce?
It is anything but obvious where to find fvwm2. It took me several
months before I finally stumbled into the new site. Thanks!

                        yours,
                                Larry Schwimmer
                                schwim_at_cyclone.stanford.edu
                                Distributed Computing Operations



--- libs/Imakefile.orig Fri Feb 16 17:17:27 1996
+++ libs/Imakefile Thu Jun 6 17:42:31 1996
_at_@ -22,6 +22,7 @@
         mystrcasecmp.c \
         safemalloc.c \
         sleep.c \
+ strerror.c \
         strncmp.c \
         wild.c
 
_at_@ -43,6 +44,7 @@
         mystrcasecmp.o \
         safemalloc.o \
         sleep.o \
+ strerror.o \
         strncmp.o \
         wild.o
 
--- /dev/null Thu Jun 6 17:41:07 1996
+++ libs/strerror.c Thu Jun 6 17:41:47 1996
_at_@ -0,0 +1,15 @@
+extern int sys_nerr;
+extern char *sys_errlist[];
+
+/* strerror
+ *
+ * Return string corresponding to errno
+ * For systems which lack this function.
+ */
+const char *
+strerror(int errnum)
+{
+ static char unknown[] = "Unknown error";
+
+ return ((unsigned int)errnum < sys_nerr) ? sys_errlist[errnum] : unknown;
+}
--
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 majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu Jun 06 1996 - 20:17:27 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:59 BST