Enable use of poll system call for FreeBSD 3.0.0-RELEASE;

checkin for Jeremy Lea <reg@shale.csir.co.za>.
This commit is contained in:
srinivas%netscape.com 1998-11-18 22:57:33 +00:00
Родитель da7ce8b0b8
Коммит e406948a78
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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