From: Roy Marples Date: Tue, 12 May 2015 20:04:28 +0000 (+0000) Subject: Use ppoll as pollts if available. X-Git-Tag: v6.9.0~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5a1f12b6ceeabf73deaa22bda417bc39e4e114a;p=thirdparty%2Fdhcpcd.git Use ppoll as pollts if available. --- diff --git a/eloop.c b/eloop.c index 5143c5f6..85e65a98 100644 --- a/eloop.c +++ b/eloop.c @@ -93,6 +93,7 @@ eloop_event_setup_fds(struct eloop *eloop) } } +#ifndef pollts /* Wrapper around pselect, to imitate the NetBSD pollts call. */ static int pollts(struct pollfd * fds, nfds_t nfds, @@ -123,6 +124,7 @@ pollts(struct pollfd * fds, nfds_t nfds, return r; } #endif +#endif int eloop_event_add(struct eloop *eloop, int fd,