1 $NetBSD: patch-ad,v 1.3 2003/11/11 10:17:39 wiz Exp $
3 --- xread.c.orig 2003-03-17 23:23:30.000000000 +0000
9 -#if (defined(SCO) || defined (SOLARIS))
10 +#if (defined(SCO) || defined (SOLARIS) || defined(NETBSD))
13 #include <sys/errno.h>
18 -#if (defined(LINUX) || defined(SOLARIS) || defined(FREEBSD))
19 +#if (defined(LINUX) || defined(SOLARIS) || defined(FREEBSD) || defined(NETBSD))
20 #include <string.h> /* char *strerror(); */
23 @@ -130,7 +130,7 @@ unsigned char *buf;
24 if( (i < 0) && (i_am_relay == 1) )
26 syslog(LOG_ERR,"Relay Xread read error");
27 - syslog(LOG_ERR, strerror(errno));
28 + syslog(LOG_ERR, "%s", strerror(errno));
31 (void) signal(SIGALRM, SIG_IGN);