summaryrefslogtreecommitdiff
path: root/math/snns/files/patch-ah
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-10-05 21:00:05 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-10-05 21:00:05 +0000
commit8193f9108d136a7aeed5d51f33015db974330e54 (patch)
tree8bad2a3e2d7544796aeb11939e4444a47cc3b2fe /math/snns/files/patch-ah
parentFix build by disabling use of <values.h> (diff)
Fix build without <values.h> present
Notes
Notes: svn path=/head/; revision=67399
Diffstat (limited to 'math/snns/files/patch-ah')
-rw-r--r--math/snns/files/patch-ah33
1 files changed, 33 insertions, 0 deletions
diff --git a/math/snns/files/patch-ah b/math/snns/files/patch-ah
new file mode 100644
index 000000000000..03617256125a
--- /dev/null
+++ b/math/snns/files/patch-ah
@@ -0,0 +1,33 @@
+--- kernel/sources/learn_f.c.orig Sat Sep 28 20:55:45 2002
++++ kernel/sources/learn_f.c Sat Sep 28 20:56:31 2002
+@@ -33,6 +33,8 @@
+ #include <math.h>
+ #ifdef HAVE_VALUES_H
+ #include <values.h>
++#else
++#include <limits.h>
+ #endif
+ #include <ctype.h>
+
+@@ -3896,8 +3898,8 @@
+
+ /* NULL before first unit */
+ topo_ptr = topo_ptr_array;
+- xmin_in = ymin_in = MAXINT;
+- xmax_in = ymax_in = -MAXINT;
++ xmin_in = ymin_in = INT_MAX;
++ xmax_in = ymax_in = -INT_MAX;
+
+ while ( (input_unit_ptr = * ++topo_ptr ) != NULL)
+ {
+@@ -3967,8 +3969,8 @@
+
+ /* topo_ptr points now to the NULL before first output unit */
+
+- xmin_out = ymin_out = MAXINT;
+- xmax_out = ymax_out = -MAXINT;
++ xmin_out = ymin_out = INT_MAX;
++ xmax_out = ymax_out = -INT_MAX;
+
+ while ( (output_unit_ptr = * ++topo_ptr ) != NULL)
+ {