--- Modules.orig/constants.c	2009-10-30 14:20:47.000000000 +0100
+++ Modules/constants.c	2009-11-03 10:06:46.000000000 +0100
@@ -181,7 +181,9 @@
 	add_int(d,OPT_X_TLS_CRL_NONE);
 	add_int(d,OPT_X_TLS_CRL_PEER);
 	add_int(d,OPT_X_TLS_CRL_ALL);
+#ifdef LDAP_OPT_X_TLS_NEWCTX
 	add_int(d,OPT_X_TLS_NEWCTX);
+#endif
 #ifdef OPT_X_TLS_PROTOCOL_MIN
 	add_int(d,OPT_X_TLS_PROTOCOL_MIN);
 #endif
