$NetBSD: patch-ac,v 1.3 2004/09/08 11:17:02 jmmv Exp $ --- General.h.orig 1997-03-21 12:12:30.000000000 +0100 +++ General.h @@ -10,7 +10,9 @@ #undef _POSIX_SOURCE #endif +#if !defined(__FreeBSD__) && !defined(__NetBSD__) #define _POSIX_SOURCE 1 +#endif #include #include @@ -32,9 +34,10 @@ typedef char Boolean; #define NewString(x) (strcpy((char *)malloc(strlen(x)+1),(x))) #ifndef SIGNAL_CALLBACK_TYPE -#define SIGNAL_CALLBACK_TYPE (void (*)(...)) +#define SIGNAL_CALLBACK_TYPE (void (*)(int sig)) #endif +#if defined(SA_SIGINFO) #define signal(x,y) \ do { \ struct sigaction sAct; \ @@ -43,6 +46,7 @@ typedef char Boolean; sAct.sa_handler = (SIGNAL_CALLBACK_TYPE(y)); \ (void)sigaction((x), &sAct, NULL); \ } while (0) +#endif #include "Config.h"