$NetBSD: patch-ae,v 1.2 2007/06/30 15:22:09 joerg Exp $ --- FvwmCompositor/main/LayerManager.cxx 2007/06/02 12:31:01 1.1 +++ FvwmCompositor/main/LayerManager.cxx 2007/06/02 12:32:00 @@ -24,6 +24,20 @@ #define A_PAGER_MODE_MARGIN_P 0.02 // -------------------------------------------------------------------- +#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) {