Fixup fromcvs/togit conversion
[pkgsrcv2.git] / misc / heyu / patches / patch-ad
1 $NetBSD: patch-ad,v 1.3 2003/11/11 10:17:39 wiz Exp $
2
3 --- xread.c.orig        2003-03-17 23:23:30.000000000 +0000
4 +++ xread.c
5 @@ -24,7 +24,7 @@
6  #include <stdio.h>
7  #include <signal.h>
8  #include <setjmp.h>
9 -#if    (defined(SCO) || defined (SOLARIS))
10 +#if    (defined(SCO) || defined (SOLARIS) || defined(NETBSD))
11  #include <errno.h>
12  #else
13  #include <sys/errno.h>
14 @@ -32,7 +32,7 @@
15  #include <syslog.h>
16  #include <unistd.h>
17  #include "x10.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(); */
21  #endif
22   
23 @@ -130,7 +130,7 @@ unsigned char *buf;
24                if( (i < 0) && (i_am_relay == 1) )
25                {
26                    syslog(LOG_ERR,"Relay Xread read error");
27 -                  syslog(LOG_ERR, strerror(errno));
28 +                  syslog(LOG_ERR, "%s", strerror(errno));
29                }
30             (void) alarm(0);
31             (void) signal(SIGALRM, SIG_IGN);