mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.poll: Include unistd.h only for epoll
This defines close(), which is only used with epoll, hence we don't need to include it when building in poll or select mode.
This commit is contained in:
parent
fbfe255e12
commit
bf35a39a15
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
@ -24,6 +23,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef USE_EPOLL
|
||||
#include <unistd.h>
|
||||
#include <sys/epoll.h>
|
||||
#ifndef MAX_EVENTS
|
||||
#define MAX_EVENTS 64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue