# HG changeset patch # User jwe # Date 1041748508 0 # Node ID 0a87097e74ca08d3419c9d2f1f9c4ca3426b120d # Parent 73431774c0b7909b4a6f6d5da67994c4453e8128 [project @ 2003-01-05 06:35:08 by jwe] diff --git a/kpathsea/ChangeLog b/kpathsea/ChangeLog --- a/kpathsea/ChangeLog +++ b/kpathsea/ChangeLog @@ -1,3 +1,7 @@ +2003-01-05 John W. Eaton + + * db.c: Define _GNU_SOURCE. + 2003-01-04 John W. Eaton * Makefile.in ($(kpathsea)): Build object files only. diff --git a/kpathsea/db.c b/kpathsea/db.c --- a/kpathsea/db.c +++ b/kpathsea/db.c @@ -16,6 +16,13 @@ License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* This gives us a better chance of finding a prototype for basename + on some systems. */ + +#if ! defined (_GNU_SOURCE) +#define _GNU_SOURCE +#endif + #include #include #include