From e9a615a2f94697c64a6702c1e3b24c59b156cc71 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 On AIX 6.1, getdelim() and getline() are not provided by default, causing a gcc compilation error. With _GETDELIM defined, AIX's stdio.h header provides definitions for these routines. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=89356 Reviewed-by: Bryce Harrington --- perf/cairo-perf-report.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perf/cairo-perf-report.c b/perf/cairo-perf-report.c index b86bc36f7..4bdcd46d7 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-missing.h" #include "cairo-perf.h" #include "cairo-stats.h"