Check for <glob.h> and provide own typedef if header unavailable.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13555 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2006-03-09 13:03:29 +00:00
parent 80c1f04c80
commit f3a611d90a
2 changed files with 17 additions and 1 deletions

View File

@ -1,5 +1,11 @@
2006-03-09 Christian Stimming <stimming@tuhh.de>
* configure.in, src/gnome-utils/gnc-druid-provider-file-gnome.h:
Check for <glob.h> and provide own typedef if header unavailable.
* configure.in, src/gnome-utils/gnc-gnome-utils.c: Check for
<X11/Xlib.h> and ignore code section if header unavailable.
* po/glossary/vi.po: Updated vietnamese glossary by Clytie Siddall
<clytie@riverland.net.au>

View File

@ -7,7 +7,17 @@
//extern "C" {
#endif
#include <glob.h>
#ifdef HAVE_GLOB_H
# include <glob.h>
#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 <glib.h>
#include <glib-object.h>
#include <libgnomeui/libgnomeui.h>