Bug 89340

Summary: util/cairo-sphinx: compilation error on AIX ('MAP_NORESERVE' undeclared)
Product: cairo Reporter: Michael Haubenwallner <michael.haubenwallner>
Component: generalAssignee: Chris Wilson <chris>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium CC: freedesktop
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: proposed patch for when MAP_NORESERVE is unsupported

Description Michael Haubenwallner 2015-02-26 16:36:10 UTC
Next one on AIX:

/.../cairo-9999/util/cairo-sphinx/sphinx.c: In function 'client_shm':
/.../cairo-9999/util/cairo-sphinx/sphinx.c:1336: error: 'MAP_NORESERVE' undeclared (first use in this function)
/.../cairo-9999/util/cairo-sphinx/sphinx.c:1336: error: (Each undeclared identifier is reported only once
/.../cairo-9999/util/cairo-sphinx/sphinx.c:1336: error: for each function it appears in.)
Makefile:631: recipe for target 'cairo_sphinx-sphinx.o' failed
make[4]: *** [cairo_sphinx-sphinx.o] Error 1
Comment 1 Michael Haubenwallner 2015-02-26 16:38:44 UTC
Created attachment 113848 [details] [review]
proposed patch for when MAP_NORESERVE is unsupported

Probably this should be done by some configure check, but that doesn't feel like worth the effort.
Thanks!
Comment 2 Behdad Esfahbod 2015-02-26 18:18:37 UTC
No need for configure if it can be done in code.
Comment 3 Bryce Harrington 2015-03-05 22:49:16 UTC
Thanks, pushed:
   ac75ab9..f72bd7c  master -> master

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.