From cce3915c2a831886250c1ab001be13d418ab4a6e Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Thu, 26 Feb 2015 16:24:55 +0100 Subject: [PATCH] define _GETDELIM for getline() on AIX, bug#89356 --- perf/cairo-analyse-trace.c | 1 + perf/cairo-perf-report.c | 2 ++ perf/cairo-perf-trace.c | 1 + util/show-contour.c | 1 + util/show-edges.c | 1 + util/show-events.c | 1 + util/show-polygon.c | 1 + util/show-traps.c | 1 + 8 files changed, 9 insertions(+) diff --git a/perf/cairo-analyse-trace.c b/perf/cairo-analyse-trace.c index 9941486..2f70f79 100644 --- a/perf/cairo-analyse-trace.c +++ b/perf/cairo-analyse-trace.c @@ -30,6 +30,7 @@ */ #define _GNU_SOURCE 1 /* for sched_getaffinity() and getline() */ +#define _GETDELIM 1 /* for getline() on AIX */ #include "../cairo-version.h" /* for the real version */ diff --git a/perf/cairo-perf-report.c b/perf/cairo-perf-report.c index d87254d..fbe13a4 100644 --- a/perf/cairo-perf-report.c +++ b/perf/cairo-perf-report.c @@ -25,6 +25,8 @@ * Authors: Carl Worth */ +#define _GETDELIM 1 /* for getline() on AIX */ + #include "cairo-perf.h" #include "cairo-missing.h" #include "cairo-stats.h" diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c index 43e9ca9..b41f303 100644 --- a/perf/cairo-perf-trace.c +++ b/perf/cairo-perf-trace.c @@ -29,6 +29,7 @@ */ #define _GNU_SOURCE 1 /* for sched_getaffinity() and getline() */ +#define _GETDELIM 1 /* for getline() on AIX */ #include "../cairo-version.h" /* for the real version */ diff --git a/util/show-contour.c b/util/show-contour.c index f3fa1ba..e1d390b 100644 --- a/util/show-contour.c +++ b/util/show-contour.c @@ -1,4 +1,5 @@ #define _GNU_SOURCE +#define _GETDELIM 1 /* for getline() on AIX */ #include #include #include diff --git a/util/show-edges.c b/util/show-edges.c index a85ad5f..f59b871 100644 --- a/util/show-edges.c +++ b/util/show-edges.c @@ -1,4 +1,5 @@ #define _GNU_SOURCE +#define _GETDELIM 1 /* for getline() on AIX */ #include #include #include diff --git a/util/show-events.c b/util/show-events.c index 8bff3ef..f92ce0e 100644 --- a/util/show-events.c +++ b/util/show-events.c @@ -1,4 +1,5 @@ #define _GNU_SOURCE +#define _GETDELIM 1 /* for getline() on AIX */ #include #include #include diff --git a/util/show-polygon.c b/util/show-polygon.c index 35c0014..f104549 100644 --- a/util/show-polygon.c +++ b/util/show-polygon.c @@ -1,4 +1,5 @@ #define _GNU_SOURCE +#define _GETDELIM 1 /* for getline() on AIX */ #include #include #include diff --git a/util/show-traps.c b/util/show-traps.c index f46c8b0..1a29a06 100644 --- a/util/show-traps.c +++ b/util/show-traps.c @@ -1,4 +1,5 @@ #define _GNU_SOURCE +#define _GETDELIM 1 /* for getline() on AIX */ #include #include #include -- 2.1.0