diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 87a9a97e5c..187e168f98 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -79,6 +79,12 @@ static int sizelimit = -1; static char *def_tmpdir; static char *def_urlpre; +#if defined(__CYGWIN__) || defined(__MINGW32__) +/* Turn off commandline globbing, otherwise you cannot search for + * attribute '*' + */ +int _CRT_glob = 0; +#endif void usage( void )