$NetBSD$

--- Foundation/NSDecimalNumber.m.orig	2008-11-03 02:00:07.000000000 +1000
+++ Foundation/NSDecimalNumber.m
@@ -22,10 +22,12 @@
    or in connection with the use or performance of this software.
 */
 
+#define nan system_nan
 #include <Foundation/NSDecimalNumber.h>
 #include <Foundation/NSUtilities.h>
 #include <common.h>
 #include <math.h>
+#undef nan
 
 @interface NSDecimalZeroNumber : NSDecimalNumber
 @end
