From: ian Date: Sun, 27 Mar 2005 22:24:00 +0000 (+0000) Subject: move _GNU_SOURCE to redactgraph.c because it causes a clash with strndup in publib... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=016d93ecdffee71d7600d67a0bcb7dd80f3a1baf;p=trains.git move _GNU_SOURCE to redactgraph.c because it causes a clash with strndup in publib/strutil.h --- diff --git a/cprogs.make b/cprogs.make index 132c373..c9d0eba 100644 --- a/cprogs.make +++ b/cprogs.make @@ -5,7 +5,7 @@ CFLAGS= $(CPPFLAGS) \ -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes \ $(WERROR) \ -g $(OPTIMISE) -CPPFLAGS= -D_GNU_SOURCE +CPPFLAGS= LINK= $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ $(LIBS) %.o: %.c diff --git a/layout/redactgraph.c b/layout/redactgraph.c index 5c45efc..7dcb743 100644 --- a/layout/redactgraph.c +++ b/layout/redactgraph.c @@ -28,6 +28,8 @@ * are often useful. */ +#define _GNU_SOURCE + #include #include #include