Mercurial > hg
changeset 924:a07bd351008b
Move _GNU_SOURCE define to the Makefile (Reimar Döffinger)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 02 Jul 2006 22:54:18 +0200 |
parents | 2647b2078cc8 |
children | 442e2f9e8bfb |
files | mcabber/configure.ac mcabber/src/hbuf.c mcabber/src/jabglue.c mcabber/src/roster.c |
diffstat | 4 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/configure.ac Tue Jun 27 23:05:41 2006 +0200 +++ b/mcabber/configure.ac Sun Jul 02 22:54:18 2006 +0200 @@ -145,6 +145,9 @@ AC_DEFINE(ENABLE_HGCSET, 1, [Use Mercurial changeset]) fi +# We need _GNU_SOURCE for strptime() and strcasestr() +CFLAGS="$CFLAGS -D_GNU_SOURCE" + AC_CONFIG_FILES([connwrap/Makefile libjabber/Makefile src/Makefile
--- a/mcabber/src/hbuf.c Tue Jun 27 23:05:41 2006 +0200 +++ b/mcabber/src/hbuf.c Sun Jul 02 22:54:18 2006 +0200 @@ -19,7 +19,6 @@ * USA */ -#define _GNU_SOURCE /* We need glibc for strptime */ #include <string.h> #include "hbuf.h"