$NetBSD: patch-af,v 1.2 2002/10/14 11:49:56 skrll Exp $ --- pth.h.in.orig Sun Jan 27 11:03:40 2002 +++ pth.h.in @@ -44,6 +44,7 @@ #include /* for sockaddr */ #include /* for sigset_t */ @EXTRA_INCLUDE_SYS_SELECT_H@ +@EXTRA_INCLUDE_SYS_RESOURCE_H@ /* fallbacks for essential typedefs */ #ifndef _PTHREAD_PRIVATE @@ -85,6 +86,11 @@ struct timeval; #define END_DECLARATION /*nop*/ #endif + /* check if the user want a bigger FD_SETSIZE than we can handle */ +#if FD_SETSIZE > @PTH_FDSETSIZE@ +#error "FD_SETSIZE is larger than pth can handle." +#endif + BEGIN_DECLARATION /* some global constants */ @@ -500,7 +506,10 @@ extern ssize_t pth_sendto(int, co extern ssize_t pth_pread(int, void *, size_t, off_t); extern ssize_t pth_pwrite(int, const void *, size_t, off_t); + /* additional replacement functions */ +extern pid_t pth_wait4(pid_t, int *, int, struct rusage *); END_DECLARATION + /* soft system call mapping support */ #if PTH_SYSCALL_SOFT && !defined(_PTH_PRIVATE)