From: Angus Leeming Date: Tue, 6 Jan 2004 21:37:31 +0000 (+0000) Subject: Cygwin compilation fix. X-Git-Tag: 1.6.10~15607 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=839ee4155923b96a5d0cc351664ed9db217044e8;p=features.git Cygwin compilation fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8309 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 229aea6f3a..80f539b16e 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,7 @@ +2004-01-06 Angus Leeming + + * globbing.C (glob): compilation fix for cygwin. + 2004-01-06 Lars Gullik Bjonnes * Makefile.am (libsupport_la_SOURCES): remove BoostFormat.h and diff --git a/src/support/globbing.C b/src/support/globbing.C index fa6a074177..195a8db549 100644 --- a/src/support/globbing.C +++ b/src/support/globbing.C @@ -67,7 +67,8 @@ string const convert_brace_glob(string const & glob) vector 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 const matches(glob_buffer.gl_pathv, glob_buffer.gl_pathv +