summaryrefslogtreecommitdiff
path: root/graphics/opendx/files/patch-ad
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>1999-09-20 06:43:20 +0000
committerThomas Gellekum <tg@FreeBSD.org>1999-09-20 06:43:20 +0000
commit346b0522f19e0ff832f8189a504d4038386affb1 (patch)
treec94c7fef2a16d745c4020e5c817a623cba04575c /graphics/opendx/files/patch-ad
parentUpdate to 1.99.5 (diff)
New port opendx, the Open Source version of IBM's Data Explorer.
Notes
Notes: svn path=/head/; revision=21820
Diffstat (limited to 'graphics/opendx/files/patch-ad')
-rw-r--r--graphics/opendx/files/patch-ad12
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/opendx/files/patch-ad b/graphics/opendx/files/patch-ad
new file mode 100644
index 000000000000..19266772041a
--- /dev/null
+++ b/graphics/opendx/files/patch-ad
@@ -0,0 +1,12 @@
+--- src/exec/dxmods/_compoper1.c.orig Wed May 26 01:52:52 1999
++++ src/exec/dxmods/_compoper1.c Thu May 27 10:21:45 1999
+@@ -477,6 +477,9 @@
+ # define rint(x) ((float)((int)((x) + 0.5)))
+ # define trunc(x) ((float)((int)(x)))
+ #endif
++#ifdef __FreeBSD__
++# define trunc(x) ((float)((int)(x)))
++#endif
+ #define SIGN(x) ((x) >= 0? (1): (-1))
+
+