Fixed a typo in the LDAP configure code and made sure NULL is defined
in a test programs that need it.
#endif
#include <windows.h>
#else
+#include <stddef.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#endif
#include <windows.h>
#else
+#include <stddef.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#endif
#include <windows.h>
#else
+#include <stddef.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#endif
#include <windows.h>
#else
+#include <stddef.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#endif
#ifdef HAVE_LDAP_H
#include <ldap.h>
-#endif"
+#endif
],[
BerValue *bvp = NULL;
BerElement *bep = ber_init(bvp);
AC_DEFUN([CURL_CHECK_WORKING_RESOLVER],[
AC_MSG_CHECKING([if "localhost" resolves])
AC_TRY_RUN([
+#include <stddef.h>
#include <string.h>
#include <sys/types.h>
#include <netdb.h>
&Curl_handler_ldap,
#endif
-#if defined(HAVE_LDAP_SSL) && !defined(CURL_DISABLE_SSL)
+#if !defined(CURL_DISABLE_LDAP) && defined(HAVE_LDAP_SSL)
&Curl_handler_ldaps,
#endif