diff -ru SNNSv4.2/configuration/Makefile.din SNNSv4.2-patched/configuration/Makefile.din --- SNNSv4.2/configuration/Makefile.din 1998-09-03 15:44:26.000000000 +0200 +++ SNNSv4.2-patched/configuration/Makefile.din 2009-11-02 10:44:34.000000000 +0100 @@ -72,7 +72,7 @@ XGUIBINDIR = $(INSTALLDIR)$(XGUIBINEXT)/bin$(HOSTBINEXT) XGUISRCDIR = xgui/sources XGUIICONSDIR = xgui/iconsXgui -MANDIR = $(INSTALLDIR)/man +MANDIR = $(INSTALLDIR)/share/man MAN1DIR = $(MANDIR)/man1 MANSRCDIR = man diff -ru SNNSv4.2/kernel/sources/kr_mem.c SNNSv4.2-patched/kernel/sources/kr_mem.c --- SNNSv4.2/kernel/sources/kr_mem.c 1998-09-03 15:38:16.000000000 +0200 +++ SNNSv4.2-patched/kernel/sources/kr_mem.c 2009-11-02 10:43:56.000000000 +0100 @@ -27,7 +27,9 @@ #else #include #endif +#include +#define MAXSHORT 32767 #include "kr_typ.h" /* Kernel Types and Constants */ #include "kernel.h" diff -ru SNNSv4.2/kernel/sources/learn_f.c SNNSv4.2-patched/kernel/sources/learn_f.c --- SNNSv4.2/kernel/sources/learn_f.c 1998-09-03 15:38:22.000000000 +0200 +++ SNNSv4.2-patched/kernel/sources/learn_f.c 2009-11-02 10:43:56.000000000 +0100 @@ -36,6 +36,8 @@ #endif #include +#define MAXINT 2147483647 + #include "kr_typ.h" /* Kernel Types and Constants */ #include "kr_const.h" /* Constant Declarators for SNNS-Kernel */ #include "kr_def.h" /* Default Values */ diff -ru SNNSv4.2/xgui/sources/ui_config.c SNNSv4.2-patched/xgui/sources/ui_config.c --- SNNSv4.2/xgui/sources/ui_config.c 1998-09-03 15:39:32.000000000 +0200 +++ SNNSv4.2-patched/xgui/sources/ui_config.c 2009-11-02 10:43:56.000000000 +0100 @@ -492,7 +492,7 @@ err = fscanf(filePtr,"%*[^:]: %d\n", &noParams); chkretline(1); lines++; - for (i=0; (i