Bug 10441

Summary: cairo does not build under solaris, tru64, hp-ux
Product: cairo Reporter: Arnaud Charlet <charlet>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.4.2   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Arnaud Charlet 2007-03-28 05:08:06 UTC
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
Comment 1 Behdad Esfahbod 2007-04-03 13:04:05 UTC
Fixed with a more portable approach: 17f5706d1730662bce0cd49f60cb150773fac051

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.