Compile fix for Solaris7 with LDAP:
authorIon Badulescu <ib42@cs.columbia.edu>
Fri, 24 Oct 2003 14:34:40 +0000 (14:34 +0000)
committerIon Badulescu <ib42@cs.columbia.edu>
Fri, 24 Oct 2003 14:34:40 +0000 (14:34 +0000)
        * include/am_defs.h: moved the ldap headers before am_nfs_prot.h
        to facilitate using ldap types in it

        * conf/nfs_prot/nfs_prot_sunos5_7.h: add a couple of ldap
        definitions that Sun left out of their headers

ChangeLog
conf/nfs_prot/nfs_prot_sunos5_7.h
include/am_defs.h

index 8cb7cac0c4a86f27574ed8c3a7ab8fb1790e25d0..4aa657668aef00f8b7b679dff6b756110a0cd4f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2003-10-24  Ion Badulescu  <ion@guppy.limebrokerage.com>
+
+       Compile fix for Solaris7 with LDAP:
+
+       * include/am_defs.h: moved the ldap headers before am_nfs_prot.h
+       to facilitate using ldap types in it
+
+       * conf/nfs_prot/nfs_prot_sunos5_7.h: add a couple of ldap
+       definitions that Sun left out of their headers
+
 2003-10-24  Ion Badulescu  <ionut@moisil.badula.org>
 
        * conf/nfs_prot/nfs_prot_*.h: remove all NFSv3-related
index 3ec309963ad0782327b2e7daae8abfa179bfe879..8e36012934a16be5a0d1e25f41ccd981b01536ff 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: nfs_prot_sunos5_7.h,v 1.13 2002/12/27 22:44:02 ezk Exp $
+ * $Id: nfs_prot_sunos5_7.h,v 1.14 2003/10/24 14:34:41 ib42 Exp $
  *
  */
 
 
 #define AUTOFS_CONFTYPE "ticotsord"
 
+/* Sun has incomplete ldap headers, but libraries are ok */
+#ifndef LDAP_VERSION_MAX
+#define LDAP_VERSION_MAX LDAP_VERSION3
+#endif /* LDAP_VERSION_MAX */
+
 
 /*
  * TYPEDEFS:
@@ -212,6 +217,11 @@ extern void *nfsproc_writecache_2(void *, CLIENT *);
 extern void *nfsproc_writecache_2_svc(void *, struct svc_req *);
 extern int nfs_program_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
 
+/* Sun has incomplete ldap headers, but libraries are ok */
+#ifdef HAVE_LDAP_H
+extern int ldap_set_option(LDAP *, int, const void *);
+#endif /* HAVE_LDAP_H */
+
 
 /*
  * ENUMS:
index b678f2a97537dd345b35b16237a4a1b186c30557..5d0e0d07c335eb7f3da99349d2d505e4c2f03fd7 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: am_defs.h,v 1.46 2003/10/24 04:50:23 ib42 Exp $
+ * $Id: am_defs.h,v 1.47 2003/10/24 14:34:42 ib42 Exp $
  *
  */
 
@@ -669,6 +669,21 @@ struct ypall_callback;
 # endif /* HAVE_SYS_FS_AUTOFS_PROT_H */
 #endif /* not HAVE_RPCSVC_AUTOFS_PROT_H */
 
+/*
+ * Actions to take if <lber.h> exists.
+ * This header file is required before <ldap.h> can be included.
+ */
+#ifdef HAVE_LBER_H
+# include <lber.h>
+#endif /* HAVE_LBER_H */
+
+/*
+ * Actions to take if <ldap.h> exists.
+ */
+#ifdef HAVE_LDAP_H
+# include <ldap.h>
+#endif /* HAVE_LDAP_H */
+
 /****************************************************************************
  ** IMPORTANT!!!                                                          **
  ** We always include am-utils' amu_autofs_prot.h.                        **
@@ -756,21 +771,6 @@ struct ypall_callback;
 # include <hesiod.h>
 #endif /* HAVE_HESIOD_H */
 
-/*
- * Actions to take if <lber.h> exists.
- * This header file is required before <ldap.h> can be included.
- */
-#ifdef HAVE_LBER_H
-# include <lber.h>
-#endif /* HAVE_LBER_H */
-
-/*
- * Actions to take if <ldap.h> exists.
- */
-#ifdef HAVE_LDAP_H
-# include <ldap.h>
-#endif /* HAVE_LDAP_H */
-
 /*
  * Actions to take if <arpa/nameser.h> exists.
  * Should be included before <resolv.h>.