diff options
Diffstat (limited to 'devel/pth/patches/patch-af')
-rw-r--r-- | devel/pth/patches/patch-af | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/devel/pth/patches/patch-af b/devel/pth/patches/patch-af index 5af34b93126..22d9907313c 100644 --- a/devel/pth/patches/patch-af +++ b/devel/pth/patches/patch-af @@ -1,28 +1,24 @@ -$NetBSD: patch-af,v 1.2 2002/10/14 11:49:56 skrll Exp $ +$NetBSD: patch-af,v 1.3 2003/05/02 11:49:48 wiz Exp $ ---- pth.h.in.orig Sun Jan 27 11:03:40 2002 +--- pth.h.in.orig Wed Jan 1 15:45:06 2003 +++ pth.h.in -@@ -44,6 +44,7 @@ - #include <sys/socket.h> /* for sockaddr */ - #include <sys/signal.h> /* for sigset_t */ +@@ -45,6 +45,7 @@ + #include <sys/socket.h> /* for sockaddr */ + #include <sys/signal.h> /* 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 +@@ -338,7 +339,6 @@ enum { + #define PTH_FAKE_POLL @PTH_FAKE_POLL@ + #if !(PTH_FAKE_POLL) + /* use vendor poll(2) environment */ +-#define _XOPEN_SOURCE + #include <poll.h> + #ifndef POLLRDNORM + #define POLLRDNORM POLLIN +@@ -544,7 +544,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); |