$NetBSD$

--- addressbook/backends/ldap/e-book-backend-ldap.c.orig	2010-06-11 17:50:57.000000000 +0000
+++ addressbook/backends/ldap/e-book-backend-ldap.c
@@ -1267,11 +1267,11 @@ create_dn_from_contact (EContact *contac
 		}
 	}
 
-	dn = g_strdup_printf ("%s=%s%s%lu",
+	dn = g_strdup_printf ("%s=%s%s%llu",
 			      get_dn_attribute_name (rootdn),
 			      (cn_part && *cn_part) ? cn_part : "",
 			      (cn_part && *cn_part) ? "." : "",
-			      time (NULL));
+			      (long long)time (NULL));
 
 	g_free (cn_part);
 
