From 839ee4155923b96a5d0cc351664ed9db217044e8 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 6 Jan 2004 21:37:31 +0000 Subject: [PATCH] Cygwin compilation fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8309 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/ChangeLog | 4 ++++ src/support/globbing.C | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + -- 2.39.2