mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#9235 Disable slapd-mtread when NO_THREADS
This commit is contained in:
parent
fab49ef4a3
commit
e2a7ad39d0
1 changed files with 17 additions and 0 deletions
|
|
@ -25,6 +25,9 @@
|
||||||
|
|
||||||
#include "portable.h"
|
#include "portable.h"
|
||||||
|
|
||||||
|
/* Requires libldap with threads */
|
||||||
|
#ifndef NO_THREADS
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "ldap_pvt_thread.h"
|
#include "ldap_pvt_thread.h"
|
||||||
|
|
||||||
|
|
@ -705,3 +708,17 @@ retry:;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else /* NO_THREADS */
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int
|
||||||
|
main( int argc, char **argv )
|
||||||
|
{
|
||||||
|
fprintf( stderr, "%s: not available when configured --without-threads\n", argv[0] );
|
||||||
|
exit( EXIT_FAILURE );
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* NO_THREADS */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue