$NetBSD: patch-ae,v 1.1.1.1 2007/06/02 19:07:33 agc 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 // -------------------------------------------------------------------- +#ifdef __NetBSD__ +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) {