On some older systems that haven't caught up to SUSv2 and SUSv3, the
select(2) system call is declared in <sys/time.h> instead of
<sys/select.h>.  The following patch fixes compiling authpipelib.c
on such systems.  At the very worst, including <sys/time.h> on
newer systems is only redundant as it must be included at some point
anyway to provide declarations for struct timeval.

        Cheers,

        -- Johnny Lam <[EMAIL PROTECTED]>
$NetBSD$

--- authpipelib.c.orig  2005-07-02 01:08:43.000000000 +0000
+++ authpipelib.c
@@ -16,6 +16,7 @@
 /*  used to avoid zombies */
 #include <signal.h>
 #include <sys/wait.h>
+#include <sys/time.h>
 #include <sys/select.h>
 
 #include       "auth.h"

Reply via email to