summaryrefslogtreecommitdiff
path: root/misc/wmweather+/files/patch-forecast.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/wmweather+/files/patch-forecast.c')
-rw-r--r--misc/wmweather+/files/patch-forecast.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/wmweather+/files/patch-forecast.c b/misc/wmweather+/files/patch-forecast.c
new file mode 100644
index 000000000000..da9df8f09676
--- /dev/null
+++ b/misc/wmweather+/files/patch-forecast.c
@@ -0,0 +1,12 @@
+--- forecast.orig Sun Mar 23 01:04:40 2003
++++ forecast.c Wed Jul 28 11:43:58 2004
+@@ -36,6 +36,9 @@
+ #include <string.h>
+ #include <limits.h>
+ #include <math.h>
++#ifndef NAN
++#define NAN (0.0/0.0)
++#endif
+ #include <pcre.h>
+
+ #include "forecast.h"