aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2011-05-21 22:10:19 +0800
committerdinoex <dinoex@FreeBSD.org>2011-05-21 22:10:19 +0800
commitdbfc1e924e10ba16162439ceadce0ca262c87b56 (patch)
tree7fc02bc21b748430e4656cb49f9040fb55b4be1e /graphics
parent79a0c89a58c53d566d98b8a5296524f0d195d980 (diff)
downloadfreebsd-ports-gnome-dbfc1e924e10ba16162439ceadce0ca262c87b56.tar.gz
freebsd-ports-gnome-dbfc1e924e10ba16162439ceadce0ca262c87b56.tar.zst
freebsd-ports-gnome-dbfc1e924e10ba16162439ceadce0ca262c87b56.zip
- fix build an amd64
PR: 157217 Submitted by: Christoph Moench-Tegeder
Diffstat (limited to 'graphics')
-rw-r--r--graphics/graphviz/files/patch-lib-ortho-trapezoid.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/graphviz/files/patch-lib-ortho-trapezoid.c b/graphics/graphviz/files/patch-lib-ortho-trapezoid.c
new file mode 100644
index 000000000000..d3bf25b76bc0
--- /dev/null
+++ b/graphics/graphviz/files/patch-lib-ortho-trapezoid.c
@@ -0,0 +1,14 @@
+--- lib/ortho/trapezoid.c.orig 2011-05-20 18:55:22.000000000 +0200
++++ lib/ortho/trapezoid.c 2011-05-20 18:57:31.000000000 +0200
+@@ -30,6 +30,11 @@
+ #define log2(x) (log(x)/log(2))
+ #endif
+
++#include <sys/param.h>
++#if __FreeBSD_version <= 704100 || (__FreeBSD_version >= 800000 && __FreeBSD_version < 802502) || (__FreeBSD_version >= 900000 && __FreeBSD_version < 900027)
++#define log2(x) (log(x)/log(2))
++#endif
++
+ /* Node types */
+
+ #define T_X 1