diff --git a/build/version.var b/build/version.var
index 7823dd7796ec87b35373083e34bfd74a18e30807..b89bc0bb3a0dbe034ae18b4a78ba373de862d346 100644
--- a/build/version.var
+++ b/build/version.var
@@ -15,9 +15,9 @@
 ol_package=OpenLDAP
 ol_major=2
 ol_minor=4
-ol_patch=X
+ol_patch=4alpha
 ol_api_inc=20404
-ol_api_current=1
-ol_api_revision=3
-ol_api_age=1
-ol_release_date="2006/10/20"
+ol_api_current=2
+ol_api_revision=0
+ol_api_age=0
+ol_release_date="2007/02/16"
diff --git a/libraries/libldap/ldap-int.h b/libraries/libldap/ldap-int.h
index a49d7427244fcf03ab084f69a904c5d3125d4b8f..5f6f6d5d35519494c2e2538d250937ce36edd1b4 100644
--- a/libraries/libldap/ldap-int.h
+++ b/libraries/libldap/ldap-int.h
@@ -42,6 +42,9 @@
 #define SASL_MIN_BUFF_SIZE	4096
 #endif
 
+/* for struct timeval */
+#include <ac/time.h>
+
 #undef TV2MILLISEC
 #define TV2MILLISEC(tv) (((tv)->tv_sec * 1000) + ((tv)->tv_usec/1000))