summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>2015-02-26 16:24:55 +0100
committerBryce Harrington <b.harrington@samsung.com>2015-03-05 16:57:09 -0800
commite9a615a2f94697c64a6702c1e3b24c59b156cc71 (patch)
tree52d5bf5fa852a8b008385890b0ab190e630b8860 /perf
parentf72bd7c7574fc8fdc1f495f3a50111329851edc5 (diff)
downloadcairo-e9a615a2f94697c64a6702c1e3b24c59b156cc71.tar.gz
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 <bryce@osg.samsung.com>
Diffstat (limited to 'perf')
-rw-r--r--perf/cairo-perf-report.c2
1 files changed, 2 insertions, 0 deletions
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 <cworth@cworth.org>
*/
+#define _GETDELIM 1/* for getline() on AIX */
+
#include "cairo-missing.h"
#include "cairo-perf.h"
#include "cairo-stats.h"