diff options
author | srinivas%netscape.com <devnull@localhost> | 1998-11-18 22:57:33 +0000 |
---|---|---|
committer | srinivas%netscape.com <devnull@localhost> | 1998-11-18 22:57:33 +0000 |
commit | 375c90a609b0977c269c31a52ea45341aaf1e616 (patch) | |
tree | 4eeb7ffbac830fb37bb72e00587a13fac102d253 | |
parent | 49a534ba28446ff01162d1cff211de5271f68555 (diff) | |
download | nspr-hg-375c90a609b0977c269c31a52ea45341aaf1e616.tar.gz |
Enable use of poll system call for FreeBSD 3.0.0-RELEASE;
checkin for Jeremy Lea <reg@shale.csir.co.za>.
-rw-r--r-- | pr/src/md/unix/uxwrap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pr/src/md/unix/uxwrap.c b/pr/src/md/unix/uxwrap.c index a6c7cc06..e7a16986 100644 --- a/pr/src/md/unix/uxwrap.c +++ b/pr/src/md/unix/uxwrap.c @@ -285,10 +285,10 @@ int select(int width, fd_set *rd, fd_set *wr, fd_set *ex, struct timeval *tv) } /* - * Linux, BSDI, FreeBSD, and Rhapsody don't have poll(). + * Redefine poll, when supported on platforms, for local threads */ -#if !defined(LINUX) && !defined(FREEBSD) && !defined(BSDI) && !defined(RHAPSODY) +#if defined(_PR_POLL_AVAILABLE) /* *----------------------------------------------------------------------- @@ -317,6 +317,8 @@ int poll(struct pollfd filedes[], int nfds, int timeout) int poll(struct pollfd *filedes, nfds_t nfds, int timeout) #elif defined(OPENBSD) int poll(struct pollfd *filedes, int nfds, int timeout) +#elif defined(FREEBSD) +int poll(struct pollfd *filedes, unsigned nfds, int timeout) #else int poll(struct pollfd *filedes, unsigned long nfds, int timeout) #endif |