Skip to content

Commit

Permalink
more mingw32 can't find glob.h
Browse files Browse the repository at this point in the history
  • Loading branch information
doke2 committed Aug 19, 2015
1 parent d0c1a4b commit c14f21a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/config/syscheck-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ static int read_attr(syscheck_config *syscheck, const char *dirs, char **g_attrs
}

/* Check for glob */
/* The mingw32 builder used by travis.ci can't find glob.h
* Yet glob must work on actual win32.
*/
#ifndef __MINGW32__
if (strchr(tmp_dir, '*') ||
strchr(tmp_dir, '?') ||
strchr(tmp_dir, '[')) {
Expand Down Expand Up @@ -396,6 +400,9 @@ static int read_attr(syscheck_config *syscheck, const char *dirs, char **g_attrs
else {
dump_syscheck_entry(syscheck, tmp_dir, opts, 0, restrictfile);
}
#else
dump_syscheck_entry(syscheck, tmp_dir, opts, 0, restrictfile);
#endif

if (restrictfile) {
free(restrictfile);
Expand Down
4 changes: 3 additions & 1 deletion src/headers/shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@
#include <ctype.h>
#include <signal.h>

/* the mingw32 builder used by travis.ci can't find glob.h */
/* The mingw32 builder used by travis.ci can't find glob.h
* Yet glob must work on actual win32.
*/
#ifndef __MINGW32__
#include <glob.h>
#endif
Expand Down

0 comments on commit c14f21a

Please sign in to comment.