[cairo-bugs] [Bug 10441] New: cairo does not build under solaris, tru64, hp-ux

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 28 06:08:13 PDT 2007


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

           Summary: cairo does not build under solaris, tru64, hp-ux
           Product: cairo
           Version: 1.4.2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: charlet at adacore.com
         QAContact: cairo-bugs at cairographics.org


test/pdiff/pdiff.c uses non portable code which fails on various platforms.

Here is a simple patch to make cairo work on solaris, tru64 and hp-ux:

--- test/pdiff/pdiff.c.old
+++ test/pdiff/pdiff.c
@@ -20,7 +20,15 @@
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
+
+#ifdef sun
+#include <sys/int_types.h>
+#elif defined (__osf__)
+#include <inttypes.h>
+#elif !defined (__hpux__)
 #include <stdint.h>
+#endif
+
 #include "pdiff.h"

 #ifndef M_PI


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


More information about the cairo-bugs mailing list