]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Use ppoll as pollts if available.
authorRoy Marples <roy@marples.name>
Tue, 12 May 2015 20:04:28 +0000 (20:04 +0000)
committerRoy Marples <roy@marples.name>
Tue, 12 May 2015 20:04:28 +0000 (20:04 +0000)
eloop.c

diff --git a/eloop.c b/eloop.c
index 5143c5f6c860bb145b8b573147acc714dd9acc1f..85e65a98f14d65736db16d6483626e2ce0b4af99 100644 (file)
--- 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,