]> git.sur5r.net Git - openldap/commitdiff
wrap include fcntl.h with HAVE_FCNTL_H
authorKurt Zeilenga <kurt@openldap.org>
Wed, 18 Nov 1998 20:11:15 +0000 (20:11 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 18 Nov 1998 20:11:15 +0000 (20:11 +0000)
clients/ud/util.c
configure.in

index 084de8130188e929c89d0afd37340df003c12e89..bb8a63f5e4b8eb0258db14419e575d961c870b0e 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <fcntl.h>
 
 #include <ac/ctype.h>
 #include <ac/errno.h>
 #include <ac/time.h>
 #include <ac/unistd.h>
 
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+
 #ifdef HAVE_CONIO_H
 #include <conio.h>
 #endif
index 5d595e5dc2e25e0b87f9f46cbf59b86bfc465d32..319b2424415186e717cf6d7025f23c1b55425489 100644 (file)
@@ -1027,13 +1027,13 @@ if test $ol_enable_cache = no ; then
        AC_DEFINE(LDAP_NOCACHE,1)
 fi
 if test $ol_enable_dns != no ; then
-       AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_DNS,LDAP_API_VENDOR_VERSION)
+       AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_DNS,LDAP_API_VENDOR_VERSION,1)
 fi
 if test $ol_enable_proctitle != no ; then
        AC_DEFINE(LDAP_PROCTITLE,1)
 fi
 if test $ol_enable_referrals != no ; then
-       AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS,LDAP_API_VENDOR_VERSION)
+       AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS,LDAP_API_VENDOR_VERSION,1)
 fi
 if test $ol_enable_cldap != no ; then
        AC_DEFINE(LDAP_CONNECTIONLESS,1)