summaryrefslogtreecommitdiff
path: root/wm/metisse/patches/patch-ad
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-10-08 05:28:55 +0000
committerobache <obache@pkgsrc.org>2010-10-08 05:28:55 +0000
commit9f07c9080bf7e65775a90025513055b1d59f8f7e (patch)
tree1cf9eb5628c4e96811fbb96699f8eab073387c1e /wm/metisse/patches/patch-ad
parentb9b00a9b1177541ef9d6de4b4ac575ff622de4b0 (diff)
downloadpkgsrc-9f07c9080bf7e65775a90025513055b1d59f8f7e.tar.gz
Update patterns for fmax/fmin.
Diffstat (limited to 'wm/metisse/patches/patch-ad')
-rw-r--r--wm/metisse/patches/patch-ad7
1 files changed, 5 insertions, 2 deletions
diff --git a/wm/metisse/patches/patch-ad b/wm/metisse/patches/patch-ad
index 095cfcfb95a..887c9783dbe 100644
--- a/wm/metisse/patches/patch-ad
+++ b/wm/metisse/patches/patch-ad
@@ -1,12 +1,14 @@
-$NetBSD: patch-ad,v 1.3 2009/07/24 12:10:18 obache Exp $
+$NetBSD: patch-ad,v 1.4 2010/10/08 05:28:56 obache Exp $
--- FvwmCompositor/renderer/WindowRenderer.cxx.orig 2008-08-25 14:32:09.000000000 +0000
+++ FvwmCompositor/renderer/WindowRenderer.cxx
-@@ -51,6 +51,20 @@ float WindowRenderer::borderVisLens = 1.
+@@ -51,6 +51,23 @@ float WindowRenderer::borderVisLens = 1.
// ---------------------------------------------------------------------------
//
+#if defined(__NetBSD__) || defined(__DragonFly__)
++#include <sys/param.h>
++#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && !(defined(__NetBSD__) && (__NetBSD_Version__ >= 599002100 || (__NetBSD_Version__ >= 501000000 && __NetBSD_Version__ < 599000000)))
+static inline double
+fmin(double x, double y)
+{
@@ -19,6 +21,7 @@ $NetBSD: patch-ad,v 1.3 2009/07/24 12:10:18 obache Exp $
+ return (x > y) ? x : y;
+}
+#endif
++#endif
+
MetisseWindow * WindowRenderer::getWindow(void)
{