From 94d3673dbe25b4b5de62018a82d54126368b0b61 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 19 Mar 2000 06:18:27 +0000 Subject: [PATCH] wrap sql *.c files with #ifdef SLAPD_SQL to facilate NT builds without -DSLAPD_SQL --- servers/slapd/back-sql/bind.c | 4 ++++ servers/slapd/back-sql/config.c | 3 +++ servers/slapd/back-sql/entry-id.c | 4 ++++ servers/slapd/back-sql/init.c | 6 +++++- servers/slapd/back-sql/modify.c | 4 ++++ servers/slapd/back-sql/other.c | 4 ++++ servers/slapd/back-sql/schema-map.c | 4 ++++ servers/slapd/back-sql/search.c | 4 ++++ servers/slapd/back-sql/sql-wrap.c | 3 +++ servers/slapd/back-sql/util.c | 4 ++++ 10 files changed, 39 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-sql/bind.c b/servers/slapd/back-sql/bind.c index 1919dea11e..f7c091592d 100644 --- a/servers/slapd/back-sql/bind.c +++ b/servers/slapd/back-sql/bind.c @@ -9,6 +9,8 @@ #include "portable.h" +#ifdef SLAPD_SQL + #include #include #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 */ \ No newline at end of file diff --git a/servers/slapd/back-sql/config.c b/servers/slapd/back-sql/config.c index 626021567c..db24349c1f 100644 --- a/servers/slapd/back-sql/config.c +++ b/servers/slapd/back-sql/config.c @@ -9,6 +9,8 @@ #include "portable.h" +#ifdef SLAPD_SQL + #include #include #include @@ -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 */ \ No newline at end of file diff --git a/servers/slapd/back-sql/entry-id.c b/servers/slapd/back-sql/entry-id.c index ae9e17eb26..92cceedd5e 100644 --- a/servers/slapd/back-sql/entry-id.c +++ b/servers/slapd/back-sql/entry-id.c @@ -9,6 +9,8 @@ #include "portable.h" +#ifdef SLAPD_SQL + #include #include #include @@ -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 */ \ No newline at end of file diff --git a/servers/slapd/back-sql/init.c b/servers/slapd/back-sql/init.c index d14af1190a..6e8a9db9af 100644 --- a/servers/slapd/back-sql/init.c +++ b/servers/slapd/back-sql/init.c @@ -9,6 +9,8 @@ #include "portable.h" +#ifdef SLAPD_SQL + #include #include #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; -} \ No newline at end of file +} + +#endif /* SLAPD_SQL */ \ No newline at end of file diff --git a/servers/slapd/back-sql/modify.c b/servers/slapd/back-sql/modify.c index e05a9bdc81..c4a8eb3dc1 100644 --- a/servers/slapd/back-sql/modify.c +++ b/servers/slapd/back-sql/modify.c @@ -9,6 +9,8 @@ #include "portable.h" +#ifdef SLAPD_SQL + #include #include #include @@ -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 */ \ No newline at end of file diff --git a/servers/slapd/back-sql/other.c b/servers/slapd/back-sql/other.c index a736b1d63d..6cd1943375 100644 --- a/servers/slapd/back-sql/other.c +++ b/servers/slapd/back-sql/other.c @@ -9,6 +9,8 @@ #include "portable.h" +#ifdef SLAPD_SQL + #include #include #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 */ \ No newline at end of file diff --git a/servers/slapd/back-sql/schema-map.c b/servers/slapd/back-sql/schema-map.c index 78e4a74ace..cc37a4a005 100644 --- a/servers/slapd/back-sql/schema-map.c +++ b/servers/slapd/back-sql/schema-map.c @@ -9,6 +9,8 @@ #include "portable.h" +#ifdef SLAPD_SQL + #include #include #include @@ -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 */ \ No newline at end of file diff --git a/servers/slapd/back-sql/search.c b/servers/slapd/back-sql/search.c index fc4fa475aa..7e983dec61 100644 --- a/servers/slapd/back-sql/search.c +++ b/servers/slapd/back-sql/search.c @@ -9,6 +9,8 @@ #include "portable.h" +#ifdef SLAPD_SQL + #include #include #include @@ -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 */ \ No newline at end of file diff --git a/servers/slapd/back-sql/sql-wrap.c b/servers/slapd/back-sql/sql-wrap.c index 8ac653e8c3..770ab597fe 100644 --- a/servers/slapd/back-sql/sql-wrap.c +++ b/servers/slapd/back-sql/sql-wrap.c @@ -9,6 +9,8 @@ #include "portable.h" +#ifdef SLAPD_SQL + #include #include #include @@ -311,3 +313,4 @@ SQLHDBC backsql_get_db_conn(Backend *be,Connection *ldapc) return dbc->dbh; } +#endif /* SLAPD_SQL */ \ No newline at end of file diff --git a/servers/slapd/back-sql/util.c b/servers/slapd/back-sql/util.c index 3808de31af..4ed26c6cf1 100644 --- a/servers/slapd/back-sql/util.c +++ b/servers/slapd/back-sql/util.c @@ -9,6 +9,8 @@ #include "portable.h" +#ifdef SLAPD_SQL + #include #include #include @@ -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 */ \ No newline at end of file -- 2.39.5