summaryrefslogtreecommitdiff
path: root/graphics/cairo/patches
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2007-03-29 12:00:44 +0000
committerdmcmahill <dmcmahill>2007-03-29 12:00:44 +0000
commit8fffd4dfaae182f4506a2e47bee4d0ec4a4b23b8 (patch)
treed21ef38a9b85f34f994356fa56108b0c8d183054 /graphics/cairo/patches
parent2237ccd5fde3fa436c51e45f4e9e8a86b6daa6ef (diff)
downloadpkgsrc-8fffd4dfaae182f4506a2e47bee4d0ec4a4b23b8.tar.gz
Repair a broken build on solaris and possibly others.
Diffstat (limited to 'graphics/cairo/patches')
-rw-r--r--graphics/cairo/patches/patch-ac29
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/cairo/patches/patch-ac b/graphics/cairo/patches/patch-ac
new file mode 100644
index 00000000000..82161370b2b
--- /dev/null
+++ b/graphics/cairo/patches/patch-ac
@@ -0,0 +1,29 @@
+$NetBSD: patch-ac,v 1.5 2007/03/29 12:00:44 dmcmahill Exp $
+
+See https://bugs.freedesktop.org/show_bug.cgi?id=10441
+Instead of the patch there which relies on things like __hpux__
+we use the configure test results.
+
+--- test/pdiff/pdiff.c.orig 2007-03-19 15:08:04.000000000 -0500
++++ test/pdiff/pdiff.c
+@@ -20,7 +20,19 @@
+ #include <math.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <stdint.h>
++
++#ifdef HAVE_STDINT_H
++# include <stdint.h>
++#else
++# ifdef HAVE_INTTYPES_H
++# include <inttypes.h>
++# else
++# ifdef HAVE_SYS_INT_TYPES_H
++# include <sys/int_types.h>
++# endif
++# endif
++#endif
++
+ #include "pdiff.h"
+
+ #ifndef M_PI