--- configure.orig	2006-09-12 17:40:55 UTC
+++ configure
@@ -2638,7 +2638,6 @@
                 THREAD_CFLAGS="-D_THREAD_SAFE -pthread"
         fi
 	CRYPT_LIB="-lcrypt"
-        ac_pthrlib="c_r"
     ;;
     linux* )
 	CRYPT_LIB="-lcrypt"
@@ -6011,7 +6010,7 @@
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-#include <netinet/in.h>
+#include <netinet6/in6.h>
 
 _ACEOF
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
