wrap sql *.c files with #ifdef SLAPD_SQL to facilate NT builds

without -DSLAPD_SQL
This commit is contained in:
Kurt Zeilenga 2000-03-19 06:18:27 +00:00
parent 1a348f9fbe
commit 94d3673dbe
10 changed files with 39 additions and 1 deletions

View file

@ -9,6 +9,8 @@
#include "portable.h"
#ifdef SLAPD_SQL
#include <stdio.h>
#include <sys/types.h>
#include "slap.h"
@ -33,3 +35,5 @@ int backsql_unbind(Backend *be,Connection *conn,Operation *op)
Debug(LDAP_DEBUG_TRACE,"<==backsql_unbind()\n",0,0,0);
return 0;
}
#endif /* SLAPD_SQL */

View file

@ -9,6 +9,8 @@
#include "portable.h"
#ifdef SLAPD_SQL
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
@ -166,3 +168,4 @@ int backsql_db_config(BackendDB *be,const char *fname,int lineno,int argc,char *
fname,lineno,argv[0]);
return 0;
}
#endif /* SLAPD_SQL */

View file

@ -9,6 +9,8 @@
#include "portable.h"
#ifdef SLAPD_SQL
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
@ -176,3 +178,5 @@ Entry* backsql_id2entry(backsql_srch_info *bsi,Entry* e,backsql_entryID* eid)
Debug(LDAP_DEBUG_TRACE,"<==backsql_id2entry()\n",0,0,0);
return e;
}
#endif /* SLAPD_SQL */

View file

@ -9,6 +9,8 @@
#include "portable.h"
#ifdef SLAPD_SQL
#include <stdio.h>
#include <sys/types.h>
#include "slap.h"
@ -188,4 +190,6 @@ int backsql_db_close(BackendDB *bd)
Debug(LDAP_DEBUG_TRACE,"==>backsql_db_close()\n",0,0,0);
Debug(LDAP_DEBUG_TRACE,"<==backsql_db_close()\n",0,0,0);
return 0;
}
}
#endif /* SLAPD_SQL */

View file

@ -9,6 +9,8 @@
#include "portable.h"
#ifdef SLAPD_SQL
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
@ -407,3 +409,5 @@ int backsql_delete(BackendDB *be,Connection *conn,Operation *op,
Debug(LDAP_DEBUG_TRACE,"<==backsql_delete()\n",0,0,0);
return 0;
}
#endif /* SLAPD_SQL */

View file

@ -9,6 +9,8 @@
#include "portable.h"
#ifdef SLAPD_SQL
#include <stdio.h>
#include <sys/types.h>
#include "slap.h"
@ -34,3 +36,5 @@ int backsql_abandon( BackendDB *be,
Debug(LDAP_DEBUG_TRACE,"<==backsql_abandon()\n",0,0,0);
return 0;
}
#endif /* SLAPD_SQL */

View file

@ -9,6 +9,8 @@
#include "portable.h"
#ifdef SLAPD_SQL
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
@ -233,3 +235,5 @@ int backsql_destroy_schema_map(backsql_info *si)
Debug(LDAP_DEBUG_TRACE,"<==destroy_schema_map()\n",0,0,0);
return 0;
}
#endif /* SLAPD_SQL */

View file

@ -9,6 +9,8 @@
#include "portable.h"
#ifdef SLAPD_SQL
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
@ -504,3 +506,5 @@ int backsql_search(Backend *be,Connection *conn,Operation *op,
Debug(LDAP_DEBUG_TRACE,"<==backsql_search()\n",0,0,0);
return 0;
}
#endif /* SLAPD_SQL */

View file

@ -9,6 +9,8 @@
#include "portable.h"
#ifdef SLAPD_SQL
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
@ -311,3 +313,4 @@ SQLHDBC backsql_get_db_conn(Backend *be,Connection *ldapc)
return dbc->dbh;
}
#endif /* SLAPD_SQL */

View file

@ -9,6 +9,8 @@
#include "portable.h"
#ifdef SLAPD_SQL
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
@ -161,3 +163,5 @@ int backsql_merge_from_clause(char **dest_from,int *dest_len,char *src_from)
free(srcc);
return 1;
}
#endif /* SLAPD_SQL */