summaryrefslogtreecommitdiff
path: root/graphics/cairo/patches
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2007-03-29 12:00:44 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2007-03-29 12:00:44 +0000
commit866fdbf14dd3aa9c89c3f67adb9d0db936fea523 (patch)
treed21ef38a9b85f34f994356fa56108b0c8d183054 /graphics/cairo/patches
parent0ee7d1927ab7b2ff76e04231a56d36cc940c1b0d (diff)
downloadpkgsrc-866fdbf14dd3aa9c89c3f67adb9d0db936fea523.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