ITS#9235 Disable slapd-mtread when NO_THREADS

This commit is contained in:
Ryan Tandy 2020-07-04 00:38:36 +00:00
parent fab49ef4a3
commit e2a7ad39d0

View file

@ -25,6 +25,9 @@
#include "portable.h"
/* Requires libldap with threads */
#ifndef NO_THREADS
#include <stdio.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 */