summaryrefslogtreecommitdiff
path: root/wm/metisse/patches/patch-ag
diff options
context:
space:
mode:
Diffstat (limited to 'wm/metisse/patches/patch-ag')
-rw-r--r--wm/metisse/patches/patch-ag25
1 files changed, 25 insertions, 0 deletions
diff --git a/wm/metisse/patches/patch-ag b/wm/metisse/patches/patch-ag
new file mode 100644
index 00000000000..573829041e9
--- /dev/null
+++ b/wm/metisse/patches/patch-ag
@@ -0,0 +1,25 @@
+$NetBSD: patch-ag,v 1.1 2009/07/24 12:10:18 obache Exp $
+
+--- FvwmCompositor/renderer/goodies.cxx.orig 2008-06-26 12:32:30.000000000 +0000
++++ FvwmCompositor/renderer/goodies.cxx
+@@ -22,6 +22,20 @@
+ #include "FoldablePolygon.H"
+ #include "desktop/MetisseWindow.H"
+
++#if defined(__NetBSD__) || defined(__DragonFly__)
++static inline double
++fmin(double x, double y)
++{
++ return (x < y) ? x : y;
++}
++
++static inline double
++fmax(double x, double y)
++{
++ return (x > y) ? x : y;
++}
++#endif
++
+ void goodies_marcking_feedback(
+ GLfloat x, GLfloat y, int dist, int draw_dist, int dirs, GLfloat alpha)
+ {