]> git.lyx.org Git - features.git/commitdiff
Cygwin compilation fix.
authorAngus Leeming <leeming@lyx.org>
Tue, 6 Jan 2004 21:37:31 +0000 (21:37 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 6 Jan 2004 21:37:31 +0000 (21:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8309 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/ChangeLog
src/support/globbing.C

index 229aea6f3afc51591a0c5b8b36fe0605be7f1d02..80f539b16ebe6d898d6d97e5b110d3daa543d931 100644 (file)
@@ -1,3 +1,7 @@
+2004-01-06  Angus Leeming  <leeming@lyx.org>
+
+       * globbing.C (glob): compilation fix for cygwin.
+
 2004-01-06  Lars Gullik Bjonnes  <larsbj@gullik.net>
 
        * Makefile.am (libsupport_la_SOURCES): remove BoostFormat.h and
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 +