]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/nt_svc.c
Per ITS#419, don't require SLAPD_RLOOKUPS when HAVE_TCPD
[openldap] / servers / slapd / nt_svc.c
index 42fe2f034851e29f78392ff97182abd13110ebe2..6eb5730dba6cea3c7975b240d0638f5ab3f873db 100644 (file)
@@ -1,12 +1,33 @@
-// nt_main.c
+/* $OpenLDAP$ */
+
 #include "portable.h"
 #include <stdio.h>
-
 #include <ac/string.h>
-
-#include "ldap_defaults.h"
 #include "slap.h"
 
+static void stubs()
+{
+    ldap_abandon(NULL, 0);
+    ldap_add_s(NULL, NULL, NULL);
+    ldap_bind_s(NULL, NULL, NULL, 0);
+    ldap_delete_s(NULL, NULL);
+    ldap_first_attribute(NULL, NULL, NULL);
+    ldap_first_entry(NULL, NULL);
+    ldap_get_dn(NULL, NULL);
+    ldap_get_option(NULL, 0, NULL);
+    ldap_get_values_len(NULL, NULL, NULL);
+    ldap_init(NULL, 0);
+    ldap_modify_s(NULL, NULL, NULL);
+    ldap_modrdn_s(NULL, NULL, NULL);
+    ldap_msgfree(NULL);
+    ldap_next_attribute(NULL, NULL, NULL);
+    ldap_result(NULL, 0, 0, NULL, NULL);
+    ldap_search(NULL, NULL, 0, NULL, NULL, 0);
+    ldap_unbind(NULL);
+}
+
+#ifdef HAVE_NT_SERVICE_MANAGER
+
 ldap_pvt_thread_cond_t started_event,          stopped_event;
 ldap_pvt_thread_t              start_status_tid,       stop_status_tid;
 
@@ -18,7 +39,7 @@ void WINAPI ServiceMain( DWORD argc, LPTSTR *argv );
 int srv_install( char* service, char* filename );
 int srv_remove ( char* service, char* filename );
 
-int main( DWORD argc, LPTSTR *argv )
+int main( int argc, LPTSTR *argv )
 {
        int             length;
        char    filename[MAX_PATH], *fname_start;
@@ -87,3 +108,5 @@ int main( DWORD argc, LPTSTR *argv )
 
        return EXIT_SUCCESS;
 }
+
+#endif