Bug 15566

Summary: cairo 1.6.4 does not build under Solaris
Product: cairo Reporter: Arnaud Charlet <charlet>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED DUPLICATE QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.6.4   
Hardware: All   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:

Description Arnaud Charlet 2008-04-17 06:29:54 UTC
cairo 1.6.4 does not build under Solaris, where you need to define
_POSIX_PTHREAD_SEMANTICS to get ctime_r definition.

Here is a suggested patch:

2008-04-17  Arnaud Charlet  <charlet@adacore.com>

        * src/cairo-ps-surface.c: Define _POSIX_PTHREAD_SEMANTICS, needed
        under Solaris.

--- src/cairo-ps-surface.c.old  2008-04-17 15:14:36.996930195 +0200
+++ src/cairo-ps-surface.c      2008-04-17 15:15:36.527525972 +0200
@@ -41,6 +41,7 @@
  */

 #define _BSD_SOURCE /* for ctime_r(), snprintf(), strdup() */
+#define _POSIX_PTHREAD_SEMANTICS
 #include "cairoint.h"
 #include "cairo-ps.h"
 #include "cairo-ps-surface-private.h"
Comment 1 Chris Wilson 2008-04-25 10:53:49 UTC

*** This bug has been marked as a duplicate of bug 15463 ***

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.