]> git.lyx.org Git - features.git/blobdiff - src/support/globbing.C
Cygwin compilation fix.
[features.git] / src / support / globbing.C
index fa6a0741770321f39440e6fecd4b899625a796bb..195a8db549b35ef43ba6190e0d1d2a8a873f181d 100644 (file)
@@ -67,7 +67,8 @@ string const convert_brace_glob(string const & glob)
 
 vector<string> const glob(string const & pattern, int flags)
 {
-       glob_t glob_buffer = {0, 0, 0, 0, 0, 0, 0, 0, 0};
+       glob_t glob_buffer;
+       glob_buffer.gl_offs = 0;        
        glob(pattern.c_str(), flags, 0, &glob_buffer);
        vector<string> const matches(glob_buffer.gl_pathv,
                                     glob_buffer.gl_pathv +