summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-10-15 16:24:46 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-10-15 16:24:46 +0000
commit001a2d9b67f3bf685c5a2df6495b999cc3966acc (patch)
tree2af4b946be65efd05b3d57fba5c863274e526e0c /acinclude.m4
parent95446f694beeacf978462bfe016066c1b0147beb (diff)
downloadcurl-001a2d9b67f3bf685c5a2df6495b999cc3966acc.tar.gz
Fix LDAP compile error when LDAP is not available.
Fixed a typo in the LDAP configure code and made sure NULL is defined in a test programs that need it.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index d477f0785..fe62273f2 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -266,6 +266,7 @@ AC_DEFUN([CURL_CHECK_HEADER_LBER], [
#endif
#include <windows.h>
#else
+#include <stddef.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
@@ -295,6 +296,7 @@ AC_DEFUN([CURL_CHECK_HEADER_LBER], [
#endif
#include <windows.h>
#else
+#include <stddef.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
@@ -434,6 +436,7 @@ AC_DEFUN([CURL_CHECK_HEADER_LDAPSSL], [
#endif
#include <windows.h>
#else
+#include <stddef.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
@@ -495,6 +498,7 @@ AC_DEFUN([CURL_CHECK_LIBS_LDAP], [
#endif
#include <windows.h>
#else
+#include <stddef.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
@@ -507,7 +511,7 @@ AC_DEFUN([CURL_CHECK_LIBS_LDAP], [
#endif
#ifdef HAVE_LDAP_H
#include <ldap.h>
-#endif"
+#endif
],[
BerValue *bvp = NULL;
BerElement *bep = ber_init(bvp);
@@ -1685,6 +1689,7 @@ dnl
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>