summaryrefslogtreecommitdiff
path: root/wm/metisse/patches/patch-ad
diff options
context:
space:
mode:
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)
{