[Gnucash-changes] r13555 - gnucash/trunk - Check for <glob.h> and
provide own typedef if header unavailable.
Christian Stimming
cstim at cvs.gnucash.org
Thu Mar 9 08:03:29 EST 2006
Author: cstim
Date: 2006-03-09 08:03:29 -0500 (Thu, 09 Mar 2006)
New Revision: 13555
Trac: http://svn.gnucash.org/trac/changeset/13555
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome-utils/gnc-druid-provider-file-gnome.h
Log:
Check for <glob.h> and provide own typedef if header unavailable.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-03-09 13:00:37 UTC (rev 13554)
+++ gnucash/trunk/ChangeLog 2006-03-09 13:03:29 UTC (rev 13555)
@@ -1,5 +1,11 @@
2006-03-09 Christian Stimming <stimming at 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 at riverland.net.au>
Modified: gnucash/trunk/src/gnome-utils/gnc-druid-provider-file-gnome.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-druid-provider-file-gnome.h 2006-03-09 13:00:37 UTC (rev 13554)
+++ gnucash/trunk/src/gnome-utils/gnc-druid-provider-file-gnome.h 2006-03-09 13:03:29 UTC (rev 13555)
@@ -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>
More information about the gnucash-changes
mailing list