freebsd-ports/misc/wmweather+/files/patch-metar.c
Pav Lucistnik e7482cbb10 - Fix rounding/truncating functions on FreeBSD 4.x
- Simplify dependencies

Submitted by:	Harald Wille <harald.wille@students.jku.at> (maintainer)
2004-11-06 12:00:12 +00:00

15 lines
299 B
C

--- metar.c.orig Fri May 14 04:55:39 2004
+++ metar.c Fri Nov 5 19:54:07 2004
@@ -36,6 +36,12 @@
#include <string.h>
#include <ctype.h>
#include <math.h>
+
+#include <sys/param.h>
+#if (__FreeBSD_version < 500000)
+#define NAN (0.0/0.0)
+#endif
+
#include <sys/stat.h>
#include <sys/wait.h>