--- src/PlotPolar.cc.orig	2007-10-06 02:04:53.000000000 +0400
+++ src/PlotPolar.cc	2009-09-06 02:23:44.000000000 +0400
@@ -5,6 +5,11 @@
 #include <kdebug.h>
 #include "PlotPolar.h"
 
+#ifdef __NetBSD__
+#define fmin(a,b) ((a)<(b)?(a):(b))
+#define fmax(a,b) ((a)>(b)?(a):(b))
+#endif
+
 using namespace std;
 
 //! general polar Plot class
