]> git.sur5r.net Git - openldap/commitdiff
Move include <slapi.h> behind #ifdef
authorKurt Zeilenga <kurt@openldap.org>
Mon, 10 Feb 2003 02:09:00 +0000 (02:09 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 10 Feb 2003 02:09:00 +0000 (02:09 +0000)
15 files changed:
servers/slapd/add.c
servers/slapd/back-monitor/database.c
servers/slapd/backend.c
servers/slapd/bind.c
servers/slapd/compare.c
servers/slapd/config.c
servers/slapd/delete.c
servers/slapd/extended.c
servers/slapd/main.c
servers/slapd/modify.c
servers/slapd/modrdn.c
servers/slapd/operation.c
servers/slapd/result.c
servers/slapd/root_dse.c
servers/slapd/search.c

index 2e11d8036092e1fa61b5cf9f22af11cdc2c8ea07..d0b393d3646b46bafc5c1efb3bc9a3da9b69f83e 100644 (file)
@@ -24,9 +24,9 @@
 
 #include "ldap_pvt.h"
 #include "slap.h"
-#include "slapi.h"
 
 #ifdef LDAP_SLAPI
+#include "slapi.h"
 static Slapi_PBlock *initAddPlugin( Backend *be, Connection *conn, Operation *op,
        struct berval *dn, Entry *e, int manageDSAit );
 static int doPreAddPluginFNs( Backend *be, Slapi_PBlock *pb );
index ac2d4fccf355ba8418ea890044281f90fdd5731e..96204196527bfc2b00c1bb13ef1913dbeac243a6 100644 (file)
 #include <stdio.h>
 
 #include "slap.h"
-#include "slapi.h"
 #include "back-monitor.h"
 
 #if defined(LDAP_SLAPI)
+#include "slapi.h"
 static int monitor_back_add_plugin( Backend *be, Entry *e );
 #endif /* defined(LDAP_SLAPI) */
 
index 679fceba7ed7b976ec41a6b003d83930d1637f1f..6586e3020fa8f342eb7fbaedd1c13f2343c51465 100644 (file)
 #include <sys/stat.h>
 
 #include "slap.h"
-#include "slapi.h"
 #include "lutil.h"
 #include "lber_pvt.h"
 
+#ifdef LDAP_SLAPI
+#include "slapi.h"
+#endif
+
 /*
  * If a module is configured as dynamic, its header should not
  * get included into slapd. While this is a general rule and does
index 34e18e58e8f2d2b543327951273fe57137fb77c5..f27b35503e135b40d45613a808370a76b9a6b26f 100644 (file)
@@ -26,7 +26,9 @@
 
 #include "ldap_pvt.h"
 #include "slap.h"
+#ifdef LDAP_SLAPI
 #include "slapi.h"
+#endif
 
 
 int
index b9c88d8d29c3085faf8a63f1b388f7cb95a9699c..67651aa87792551a012faff9a55288bc61a60d2d 100644 (file)
@@ -22,7 +22,9 @@
 
 #include "ldap_pvt.h"
 #include "slap.h"
+#ifdef LDAP_SLAPI
 #include "slapi.h"
+#endif
 
 static int compare_entry(
        Connection *conn,
index c83f13148a75203b902a68ead92381e1773e07ea..ac10f94a89844d4b5502d963c717739bee08bb58 100644 (file)
@@ -18,7 +18,9 @@
 #include "lutil.h"
 #include "ldap_pvt.h"
 #include "slap.h"
+#ifdef LDAP_SLAPI
 #include "slapi.h"
+#endif
 
 #define ARGS_STEP      512
 
index 02d37bd4228b1808a967d0f38302799afbd21699..89d3a8d49f4616740a5fbf3c6e573bffd81cdf6a 100644 (file)
 
 #include "ldap_pvt.h"
 #include "slap.h"
+
+#ifdef LDAP_SLAPI
 #include "slapi.h"
+#endif
 
 int
 do_delete(
index 8801a55984eba244df19f7dedb62599acc8fe2ec..e4ae48634215fc07da6aa9925d7d57f17e2941b6 100644 (file)
 #include <ac/string.h>
 
 #include "slap.h"
-#include "slapi.h"
 #include "lber_pvt.h"
 
+#ifdef LDAP_SLAPI
+#include "slapi.h"
+#endif
+
 #define UNSUPPORTED_EXTENDEDOP "unsupported extended operation"
 
 static struct extop_list {
index 412d12438b9683e71579ac7505e07c112509f3ef..10ab52ae2c9117e27d9d7afdffe0079647580952 100644 (file)
 #include "ldap_pvt.h"
 
 #include "slap.h"
-#include "slapi.h"
 #include "lutil.h"
 #include "ldif.h"
 
+#ifdef LDAP_SLAPI
+#include "slapi.h"
+#endif
+
 #ifdef LDAP_SIGCHLD
 static RETSIGTYPE wait4child( int sig );
 #endif
index d57a9b7ca12301871cc5766008cfb8bc2bc364a8..44c9da2be8d937290961a30fc67c8f11d4fdf852 100644 (file)
@@ -27,7 +27,9 @@
 
 #include "ldap_pvt.h"
 #include "slap.h"
+#ifdef LDAP_SLAPI
 #include "slapi.h"
+#endif
 
 int
 do_modify(
index f496b92a35b60159ac465fddbbaa48d24ff4381a..d2c11b96b1c3a7e92acca4f0f0e5f7bbd998c3c4 100644 (file)
@@ -37,7 +37,9 @@
 
 #include "ldap_pvt.h"
 #include "slap.h"
+#ifdef LDAP_SLAPI
 #include "slapi.h"
+#endif
 
 int
 do_modrdn(
index 42f52b2c71dc619c01d2a6d7fa5e45893d484541..2a8da886da336e1b588d7941c8da1bfba0274b6d 100644 (file)
 #include <ac/socket.h>
 
 #include "slap.h"
+
+#ifdef LDAP_SLAPI
 #include "slapi.h"
+#endif
 
 
 void
index 77ab2c0607887cb0a92406b35fd57b66ccbbc861..bfda458460b6ea98e7be681b8e6ba56dbe5b2253 100644 (file)
 #include <ac/unistd.h>
 
 #include "slap.h"
+
+#ifdef LDAP_SLAPI
 #include "slapi.h"
+#endif
 
 static char *v2ref( BerVarray ref, const char *text )
 {
index b9c7f35e8029208703aa7e90bc503c3ee41e49c3..f61a36c362cc16cef8ba837dfe03bda53a4f12f2 100644 (file)
 #include <ac/string.h>
 
 #include "slap.h"
-#include "slapi.h"
 #include <ldif.h>
 #include "lber_pvt.h"
 
+#ifdef LDAP_SLAPI
+#include "slapi.h"
+#endif
+
 static struct berval supportedFeatures[] = {
        BER_BVC(LDAP_FEATURE_ALL_OPERATIONAL_ATTRS), /* all Operational Attributes ("+") */
        BER_BVC(LDAP_FEATURE_OBJECTCLASS_ATTRS), /* OCs in Attributes List */
index fcac37b3cc8f5830d0b19c70a38ca6e7b5d55632..fd7ea25a024b3c9f55137add6170074dec872b2f 100644 (file)
@@ -25,9 +25,9 @@
 #include "ldap_pvt.h"
 #include "lutil.h"
 #include "slap.h"
-#include "slapi.h"
 
 #ifdef LDAP_SLAPI
+#include "slapi.h"
 static char **anlist2charray( AttributeName *an );
 static Slapi_PBlock *initSearchPlugin( Backend *be, Connection *conn, Operation *op,
        struct berval *base, int scope, int deref, int sizelimit, int timelimit,