From f3a611d90adbe9e4bf069ecda7ad557842e7ef8c Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Thu, 9 Mar 2006 13:03:29 +0000 Subject: [PATCH] Check for and provide own typedef if header unavailable. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13555 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 6 ++++++ src/gnome-utils/gnc-druid-provider-file-gnome.h | 12 +++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c1af0879eb..7463167b3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2006-03-09 Christian Stimming + * configure.in, src/gnome-utils/gnc-druid-provider-file-gnome.h: + Check for and provide own typedef if header unavailable. + + * configure.in, src/gnome-utils/gnc-gnome-utils.c: Check for + and ignore code section if header unavailable. + * po/glossary/vi.po: Updated vietnamese glossary by Clytie Siddall diff --git a/src/gnome-utils/gnc-druid-provider-file-gnome.h b/src/gnome-utils/gnc-druid-provider-file-gnome.h index a2f953c52a..325ac6d413 100644 --- a/src/gnome-utils/gnc-druid-provider-file-gnome.h +++ b/src/gnome-utils/gnc-druid-provider-file-gnome.h @@ -7,7 +7,17 @@ //extern "C" { #endif -#include +#ifdef HAVE_GLOB_H +# include +#else +typedef struct +{ + size_t gl_pathc; /* Count of paths matched so far */ + char **gl_pathv; /* List of matched pathnames. */ + size_t gl_offs; /* Slots to reserve in `gl_pathv'. */ +} glob_t; +#endif + #include #include #include