diff options
author | jmmv <jmmv> | 2004-09-08 11:17:02 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2004-09-08 11:17:02 +0000 |
commit | acc93befa934a9228a4e07349820ea4b20a50e2a (patch) | |
tree | 356f2c5d22a7034b57051a3f9adfbd7c2487f327 /wm/wm2/patches/patch-ac | |
parent | 82844a08f5c628c6513a4a5c82d40b6653658f98 (diff) | |
download | pkgsrc-acc93befa934a9228a4e07349820ea4b20a50e2a.tar.gz |
Fix build: the code was using an incorrect prototype when setting up the
sigaction structure.
Diffstat (limited to 'wm/wm2/patches/patch-ac')
-rw-r--r-- | wm/wm2/patches/patch-ac | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/wm/wm2/patches/patch-ac b/wm/wm2/patches/patch-ac index 44ebef93cb1..b3135118930 100644 --- a/wm/wm2/patches/patch-ac +++ b/wm/wm2/patches/patch-ac @@ -1,6 +1,6 @@ -$NetBSD: patch-ac,v 1.2 2002/08/25 21:51:38 jlam Exp $ +$NetBSD: patch-ac,v 1.3 2004/09/08 11:17:02 jmmv Exp $ ---- General.h.orig Fri Mar 21 12:12:30 1997 +--- General.h.orig 1997-03-21 12:12:30.000000000 +0100 +++ General.h @@ -10,7 +10,9 @@ #undef _POSIX_SOURCE @@ -12,3 +12,23 @@ $NetBSD: patch-ac,v 1.2 2002/08/25 21:51:38 jlam Exp $ #include <stdio.h> #include <signal.h> +@@ -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" + |