mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Relocated the stubs function to avoid being dependent on
HAVE_NT_SERVICE_MANAGER - when threads are disabled, HAVE_NT_SERVICE_MANAGER is not defined, but the stubs still must remain defined.
This commit is contained in:
parent
25323de5cb
commit
e8182f97c4
1 changed files with 18 additions and 18 deletions
|
|
@ -2,24 +2,6 @@
|
|||
// nt_main.c
|
||||
#include "portable.h"
|
||||
|
||||
#ifdef HAVE_NT_SERVICE_MANAGER
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ac/string.h>
|
||||
|
||||
#include "slap.h"
|
||||
|
||||
ldap_pvt_thread_cond_t started_event, stopped_event;
|
||||
ldap_pvt_thread_t start_status_tid, stop_status_tid;
|
||||
|
||||
|
||||
/* in main.c */
|
||||
void WINAPI ServiceMain( DWORD argc, LPTSTR *argv );
|
||||
|
||||
/* in ntservice.c */
|
||||
int srv_install( char* service, char* filename );
|
||||
int srv_remove ( char* service, char* filename );
|
||||
|
||||
static void stubs()
|
||||
{
|
||||
ldap_add_s(NULL, NULL, NULL);
|
||||
|
|
@ -40,6 +22,24 @@ static void stubs()
|
|||
ldap_unbind(NULL);
|
||||
}
|
||||
|
||||
#ifdef HAVE_NT_SERVICE_MANAGER
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ac/string.h>
|
||||
|
||||
#include "slap.h"
|
||||
|
||||
ldap_pvt_thread_cond_t started_event, stopped_event;
|
||||
ldap_pvt_thread_t start_status_tid, stop_status_tid;
|
||||
|
||||
|
||||
/* in main.c */
|
||||
void WINAPI ServiceMain( DWORD argc, LPTSTR *argv );
|
||||
|
||||
/* in ntservice.c */
|
||||
int srv_install( char* service, char* filename );
|
||||
int srv_remove ( char* service, char* filename );
|
||||
|
||||
int main( int argc, LPTSTR *argv )
|
||||
{
|
||||
int length;
|
||||
|
|
|
|||
Loading…
Reference in a new issue