Skip to content

Commit

Permalink
define _GETDELIM for getline() on AIX
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Haubenwallner authored and Bryce Harrington committed Mar 6, 2015
1 parent f72bd7c commit e9a615a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perf/cairo-perf-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e9a615a

Please sign in to comment.