Include <sys/poll.h> only if there is no <poll.h>

* pathtrace.c: Do not include <sys/poll.h> if <poll.h> is available.
* stream.c: Likewise.
This commit is contained in:
Дмитрий Левин 2013-11-06 01:17:05 +00:00
parent 2b64034786
commit d64a7e4755
2 changed files with 4 additions and 6 deletions

View File

@ -28,10 +28,9 @@
#include "defs.h"
#include <sys/param.h>
#ifdef HAVE_POLL_H
#if defined HAVE_POLL_H
# include <poll.h>
#endif
#ifdef HAVE_SYS_POLL_H
#elif defined HAVE_SYS_POLL_H
# include <sys/poll.h>
#endif

View File

@ -27,10 +27,9 @@
*/
#include "defs.h"
#ifdef HAVE_POLL_H
#if defined HAVE_POLL_H
# include <poll.h>
#endif
#ifdef HAVE_SYS_POLL_H
#elif defined HAVE_SYS_POLL_H
# include <sys/poll.h>
#endif
#ifdef HAVE_SYS_CONF_H