Bug 10441 - cairo does not build under solaris, tru64, hp-ux
Summary: cairo does not build under solaris, tru64, hp-ux
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.4.2
Hardware: Other All
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-28 05:08 UTC by Arnaud Charlet
Modified: 2007-04-03 13:04 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.