poll: include correct poll.h based on autoconf test

https://bugzilla.gnome.org/show_bug.cgi?id=667286
This commit is contained in:
Idar Tollefsen 2012-01-01 20:17:41 +01:00 committed by Tim-Philipp Müller
parent 1bf892ba02
commit f0e121c197

View file

@ -75,7 +75,12 @@
#define EINPROGRESS WSAEINPROGRESS
#else
#define _GNU_SOURCE 1
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif
#ifdef HAVE_POLL_H
#include <poll.h>
#endif
#include <sys/time.h>
#include <sys/socket.h>
#endif