--- configure.orig	2010-04-01 16:50:38.000000000 +0200
+++ configure	2010-04-01 16:50:38.000000000 +0200
@@ -15991,6 +15991,8 @@ if test "x$ac_cv_header_ifaddrs_h" = "xy
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
+          #include <sys/types.h>
+          #include <sys/socket.h>
           #include <ifaddrs.h>
           #include <net/if.h>
 
