From 016d93ecdffee71d7600d67a0bcb7dd80f3a1baf Mon Sep 17 00:00:00 2001 From: ian Date: Sun, 27 Mar 2005 22:24:00 +0000 Subject: [PATCH] move _GNU_SOURCE to redactgraph.c because it causes a clash with strndup in publib/strutil.h --- cprogs.make | 2 +- layout/redactgraph.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2