--- configure
+++ configure
@@ -2835,6 +2835,8 @@
 #define USE_SIOCGIFCONF
 _ACEOF
 
+	# define these to pick up most of the prototypes
+	CFLAGS="$CFLAGS -D_GNU_SOURCE"
 
 	;;
 *-*-qnx*)
