diff -Naur sr-2.3.2/Configuration sr-2.3.2.linux/Configuration --- sr-2.3.2/Configuration 1999-08-14 01:42:02.000000000 +0200 +++ sr-2.3.2.linux/Configuration 2002-11-06 22:14:26.000000000 +0100 @@ -26,9 +26,9 @@ # MAN5: directory in which to install the srmap/srtrace(5) man pages # (extension will be `tr 1 5` of MANEXT) -SRSRC = /usr/local/src/sr -SRCMD = /usr/local/bin -SRLIB = /usr/local/lib/sr +SRSRC = /var/tmp/portage/sr-2.3.2/work +SRCMD = /usr/bin +SRLIB = /usr/lib/sr MAN1 = /usr/man/manl MAN3 = /usr/man/manl MAN5 = /usr/man/manl @@ -54,8 +54,8 @@ # for Sun Solaris with Sun's C compiler use: CCPATH = /opt/SUNWspro/bin/cc # for Linux, NetBSD, FreeBSD, or SGI Irix use: CCPATH = /usr/bin/cc -CCPATH = /bin/cc -RSHPATH = /usr/ucb/rsh +CCPATH = /usr/bin/gcc +RSHPATH = /usr/bin/ssh @@ -81,7 +81,7 @@ # LIBC = , LIBR = , LIBM = -lm LIBC = -LIBR = -L/usr/X11/lib +LIBR = -L/usr/X11R6/lib LIBM = -lm @@ -98,7 +98,7 @@ # for NetBSD, set XINCL = /usr/X386/include # for Linux, set XINCL = /usr/X11/include -XINCL = /usr/include +XINCL = /usr/X11R6/include XTANGO = @@ -107,7 +107,7 @@ # # Set these definitions empty if your system does not have vgrind. -VFPATH = /usr/lib/vfontedpr +VFPATH = VGMACS = diff -Naur sr-2.3.2/rts/socket.c sr-2.3.2.linux/rts/socket.c --- sr-2.3.2/rts/socket.c 1999-08-09 18:34:34.000000000 +0200 +++ sr-2.3.2.linux/rts/socket.c 2002-11-06 22:19:12.000000000 +0100 @@ -488,8 +488,8 @@ extern char *sys_errlist[]; #endif - if (errno > 0 && errno < sys_nerr) - strcpy (s1, sys_errlist[errno]); + if (errno > 0) + strcpy (s1, strerror(errno)); else sprintf (s1, "error %d", errno); sprintf (s2, "%s: %s", message ? message : "network I/O", s1);