From 9f55887315fe5b70d786f110718bbe5930b6328a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 18 Nov 1998 20:11:15 +0000 Subject: [PATCH] wrap include fcntl.h with HAVE_FCNTL_H --- clients/ud/util.c | 5 ++++- configure.in | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/clients/ud/util.c b/clients/ud/util.c index 084de81301..bb8a63f5e4 100644 --- a/clients/ud/util.c +++ b/clients/ud/util.c @@ -14,7 +14,6 @@ #include #include -#include #include #include @@ -24,6 +23,10 @@ #include #include +#ifdef HAVE_FCNTL_H +#include +#endif + #ifdef HAVE_CONIO_H #include #endif diff --git a/configure.in b/configure.in index 5d595e5dc2..319b242441 100644 --- a/configure.in +++ b/configure.in @@ -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) -- 2.39.5