Bug 15566 - cairo 1.6.4 does not build under Solaris
Summary: cairo 1.6.4 does not build under Solaris
Status: RESOLVED DUPLICATE of bug 15463
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.6.4
Hardware: All Solaris
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-17 06:29 UTC by Arnaud Charlet
Modified: 2008-04-25 10:53 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.