]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on Linux.
authorRoy Marples <roy@marples.name>
Mon, 18 Feb 2013 21:45:19 +0000 (21:45 +0000)
committerRoy Marples <roy@marples.name>
Mon, 18 Feb 2013 21:45:19 +0000 (21:45 +0000)
configure
eloop.c

index b868c44ec861f8570ca610a79b3f4bf64ebaeb91..1bfae4fbe5b6267fb208561e68f8def72a4f377e 100755 (executable)
--- a/configure
+++ b/configure
@@ -588,7 +588,6 @@ case "$POLLTS" in
 yes)
        ;;
 ppoll)
-       echo "#include \"compat/pollts.h\"" >>$CONFIG_H
        echo "#define pollts ppoll" >>$CONFIG_H
        ;;
 pselect)
diff --git a/eloop.c b/eloop.c
index 1d08991531387269c84918ae689f715e8993be85..26fe9a817a150042245ba7038e96e987586d105a 100644 (file)
--- a/eloop.c
+++ b/eloop.c
@@ -25,6 +25,9 @@
  * SUCH DAMAGE.
  */
 
+/* Needed for ppoll(2) */
+#define _GNU_SOURCE
+
 #include <sys/time.h>
 
 #include <errno.h>