Commit aaf25331 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Move include <slapi.h> behind #ifdef

parent 29304f0c
......@@ -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 );
......
......@@ -36,10 +36,10 @@
#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) */
......
......@@ -15,10 +15,13 @@
#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
......
......@@ -26,7 +26,9 @@
#include "ldap_pvt.h"
#include "slap.h"
#ifdef LDAP_SLAPI
#include "slapi.h"
#endif
int
......
......@@ -22,7 +22,9 @@
#include "ldap_pvt.h"
#include "slap.h"
#ifdef LDAP_SLAPI
#include "slapi.h"
#endif
static int compare_entry(
Connection *conn,
......
......@@ -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
......
......@@ -24,7 +24,10 @@
#include "ldap_pvt.h"
#include "slap.h"
#ifdef LDAP_SLAPI
#include "slapi.h"
#endif
int
do_delete(
......
......@@ -33,9 +33,12 @@
#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 {
......
......@@ -17,10 +17,13 @@
#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
......
......@@ -27,7 +27,9 @@
#include "ldap_pvt.h"
#include "slap.h"
#ifdef LDAP_SLAPI
#include "slapi.h"
#endif
int
do_modify(
......
......@@ -37,7 +37,9 @@
#include "ldap_pvt.h"
#include "slap.h"
#ifdef LDAP_SLAPI
#include "slapi.h"
#endif
int
do_modrdn(
......
......@@ -13,7 +13,10 @@
#include <ac/socket.h>
#include "slap.h"
#ifdef LDAP_SLAPI
#include "slapi.h"
#endif
void
......
......@@ -17,7 +17,10 @@
#include <ac/unistd.h>
#include "slap.h"
#ifdef LDAP_SLAPI
#include "slapi.h"
#endif
static char *v2ref( BerVarray ref, const char *text )
{
......
......@@ -17,10 +17,13 @@
#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 */
......
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment