$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,23 @@ float WindowRenderer::borderVisLens = 1. // --------------------------------------------------------------------------- // +#if defined(__NetBSD__) || defined(__DragonFly__) +#include +#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) +{ + return (x < y) ? x : y; +} + +static inline double +fmax(double x, double y) +{ + return (x > y) ? x : y; +} +#endif +#endif + MetisseWindow * WindowRenderer::getWindow(void) { return _window;