Below is a small hack to get server/signal.c compiling on NetBSD due to the fact that SA_SIGINFO and siginfo_t are not yet available in NetBSD-stable (and it seems not in -current either). -- Yorick Hardy --- server/signal.c Fri Apr 11 12:57:25 2003 +++ server/signal.c Fri Apr 11 13:37:08 2003 @@ -195,7 +195,11 @@ } /* SIGIO handler */ +#ifdef SA_SIGINFO static void do_sigio( int signum, siginfo_t *si, void *x ) +#else +static void do_sigio( int signum ) +#endif { do_signal( handler_sigio ); #ifdef HAVE_SIGINFO_T_SI_FD @@ -232,8 +236,12 @@ action.sa_handler = do_sigterm; sigaction( SIGQUIT, &action, NULL ); sigaction( SIGTERM, &action, NULL ); +#ifdef SA_SIGINFO action.sa_sigaction = do_sigio; action.sa_flags = SA_SIGINFO; +#else + action.sa_handler = do_sigio; +#endif sigaction( SIGIO, &action, NULL ); return;