[cairo-bugs] [Bug 15566] New: cairo 1.6.4 does not build under Solaris

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 17 06:29:56 PDT 2008


http://bugs.freedesktop.org/show_bug.cgi?id=15566

           Summary: cairo 1.6.4 does not build under Solaris
           Product: cairo
           Version: 1.6.4
          Platform: All
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: charlet at adacore.com
         QAContact: cairo-bugs at cairographics.org


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 at 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"


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list