Hi!
Another patch for mit-pthreads under NetBSD. The newer gcc that is now used
on NetBSD-current needs a prototype for select(2) to compile mysqld.cc
otherwise it aborts with:
mysqld.cc: In function `void * handle_connections_sockets(void *)':
mysqld.cc:2314: implicit declaration of function `int select(...)'
The following patch from our pkgsrc collection should be incorporated:
$NetBSD: patch-ah,v 1.7 2001/10/08 17:28:13 veego Exp $
--- mit-pthreads/include/unistd.h-orig Wed Oct 3 18:08:36 2001
+++ mit-pthreads/include/unistd.h Mon Oct 8 08:15:37 2001
@@ -177,6 +177,12 @@
void usleep __P_((unsigned));
int vfork __P_((void));
+/* FIXME: this should go to <sys/time.h>! */
+#if __STDC__
+struct timeval; /* select(2) XXX */
+#endif
+int select __P((int, fd_set *, fd_set *, fd_set *, struct timeval *));
+
#endif /* !_POSIX_SOURCE */
__END_DECLS
Thanks,
--chris