Skip to content
Snippets Groups Projects
Commit 389d1612 authored by deuce's avatar deuce
Browse files

GLOB_ONLYDIR is non-standard and doesn't exist in BSD.

parent 4884ce7f
No related branches found
No related tags found
No related merge requests found
...@@ -57,9 +57,11 @@ void create_raw_dir_list(const char* list_file) ...@@ -57,9 +57,11 @@ void create_raw_dir_list(const char* list_file)
uifc.msg(path); uifc.msg(path);
return; return;
} }
glob(path,GLOB_ONLYDIR,NULL,&g); glob(path,0,NULL,&g);
for(gi=0;gi<g.gl_pathc;gi++) for(gi=0;gi<g.gl_pathc;gi++) {
fprintf(fp,"%s\n",getfname(g.gl_pathv[gi])); if(isdir(g.gl_pathv[gi]))
fprintf(fp,"%s\n",getfname(g.gl_pathv[gi]));
}
globfree(&g); globfree(&g);
fclose(fp); fclose(fp);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment