$NetBSD$

--- kspread/ValueCalc.cpp.orig	2009-10-04 03:47:25.000000000 +1300
+++ kspread/ValueCalc.cpp
@@ -29,6 +29,10 @@
 #include <stdlib.h>
 #include <time.h>
 
+#ifdef __NetBSD__
+#define fmin(a,b) ((a) < (b) ? (a) : (b))
+#endif
+
 using namespace KSpread;
 
 
