$NetBSD: patch-ad,v 1.2 2002/07/02 14:03:52 wiz Exp $ --- xread.c.orig Wed Apr 11 06:49:48 2001 +++ xread.c @@ -28,7 +28,7 @@ #include #include #include -#if (defined(SCO) || defined (SOLARIS)) +#if (defined(SCO) || defined (SOLARIS) || defined(NETBSD)) #include #else #include @@ -36,7 +36,7 @@ #include #include #include "x10.h" -#if (defined(LINUX) || defined(SOLARIS) || defined(FREEBSD)) +#if (defined(LINUX) || defined(SOLARIS) || defined(FREEBSD) || defined(NETBSD)) #include /* char *strerror(); */ #endif @@ -128,7 +128,7 @@ if( (i < 0) && (i_am_relay != 1) ) { syslog(LOG_ERR,"Xread read error"); - syslog(LOG_ERR, strerror(errno)); + syslog(LOG_ERR, "%s", strerror(errno)); } (void) alarm(0); (void) signal(SIGALRM, SIG_IGN);