changeset 1858:cfac5a32a2d6 draft

Fix compile on Linux.
author Roy Marples <roy@marples.name>
date Mon, 18 Feb 2013 21:45:19 +0000
parents a03db7acafeb
children 7672fc19e2e7
files configure eloop.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Feb 18 21:35:24 2013 +0000
+++ b/configure	Mon Feb 18 21:45:19 2013 +0000
@@ -588,7 +588,6 @@
 yes)
 	;;
 ppoll)
-	echo "#include \"compat/pollts.h\"" >>$CONFIG_H
 	echo "#define pollts ppoll" >>$CONFIG_H
 	;;
 pselect)
--- a/eloop.c	Mon Feb 18 21:35:24 2013 +0000
+++ b/eloop.c	Mon Feb 18 21:45:19 2013 +0000
@@ -25,6 +25,9 @@
  * SUCH DAMAGE.
  */
 
+/* Needed for ppoll(2) */
+#define _GNU_SOURCE
+
 #include <sys/time.h>
 
 #include <errno.h>