summaryrefslogtreecommitdiff
path: root/gtk/gtksearchenginesimple.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@src.gnome.org>2007-06-10 17:25:16 +0000
committerEmmanuele Bassi <ebassi@src.gnome.org>2007-06-10 17:25:16 +0000
commit9b43c45d26ddcff86dbdf09dbfd93f53e0d57dc4 (patch)
tree7ebdcec2f4c806ce8102b45e2d57c2b57fabca40 /gtk/gtksearchenginesimple.c
parentf7ba83c61315d5e08bae884639c3a448722f9acf (diff)
downloadgtk+-9b43c45d26ddcff86dbdf09dbfd93f53e0d57dc4.tar.gz
Define GNU libc symbols unconditionally
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
Diffstat (limited to 'gtk/gtksearchenginesimple.c')
-rw-r--r--gtk/gtksearchenginesimple.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtksearchenginesimple.c b/gtk/gtksearchenginesimple.c
index ede5e85214..16efa88dc5 100644
--- a/gtk/gtksearchenginesimple.c
+++ b/gtk/gtksearchenginesimple.c
@@ -22,10 +22,13 @@
#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>