$NetBSD: patch-ae,v 1.3 2009/07/24 12:10:18 obache Exp $ --- FvwmCompositor/main/LayerManager.cxx.orig 2008-08-25 13:54:44.000000000 +0000 +++ FvwmCompositor/main/LayerManager.cxx @@ -25,6 +25,20 @@ using namespace std; // -------------------------------------------------------------------- +#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 LayerManager::preDisplay(void) {