]> Pileus Git - ~andy/gtk/commitdiff
Define GNU libc symbols unconditionally
authorEmmanuele Bassi <ebassi@src.gnome.org>
Sun, 10 Jun 2007 17:25:16 +0000 (17:25 +0000)
committerEmmanuele Bassi <ebassi@src.gnome.org>
Sun, 10 Jun 2007 17:25:16 +0000 (17:25 +0000)
Unconditionally define _GNU_SOURCE and XOPEN_SOURCE, in order to make
the simple search engine backend build on really ancient GNU libc
(see bug 444097), which have ftw.h but need those symbols defined even
to export a POSIX-like ftw() and friends.

svn path=/trunk/; revision=18096

ChangeLog
gtk/gtksearchenginesimple.c

index fb7ea56cb86d2e4a5b3e4adbe1cc1c3189262e09..bf2287fe0814ab8ae81dd4885ddb7e4257ec3067 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-10  Emmanuele Bassi  <ebassi@gnome.org>
+
+       * gtk/gtksearchenginesimple.c: Unconditionally define _GNU_SOURCE
+       and XOPEN_SOURCE, in order to make the simple search engine backend
+       build on really ancient GNU libc. (#444097)
+
 2007-06-10  Michael Natterer  <mitch@imendio.com>
 
        * gdk/quartz/gdkdrawable-quartz.c (gdk_quartz_draw_arc): fix
index ede5e85214771724f800ae6a53435a41a0e2d5f2..16efa88dc5211d04c6e5637a9fafcf48b2462352 100644 (file)
 
 #include <config.h>
 
-#ifdef HAVE_GNU_FTW
+/* these must be defined even when HAVE_GNU_FTW is not defined
+ * because (really) old versions of GNU libc have ftw.h but do
+ * export ftw() and friends only if _XOPEN_SOURCE and _GNU_SOURCE
+ * are defined. see bug #444097.
+ */
 #define _XOPEN_SOURCE 500
 #define _GNU_SOURCE 
-#endif
 
 #ifdef HAVE_FTW_H
 #include <ftw.h>