mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
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
This commit is contained in:
parent
f7ba83c613
commit
9b43c45d26
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user