$NetBSD: patch-aa,v 1.2 2006/01/03 20:20:08 joerg Exp $

--- kernel/sources/kr_typ.h.orig	Wed Jun 27 19:38:31 2001
+++ kernel/sources/kr_typ.h	Wed Jun 27 19:44:26 2001
@@ -30,6 +30,12 @@
 
 #################################################*/
 
+#if defined(__NetBSD__) || defined(__DragonFly__) || defined(__FreeBSD__)
+#include <limits.h>
+#define MAXSHORT USHRT_MAX
+#define MAXINT INT_MAX
+#endif
+
 #ifdef __BORLANDC__
 
 #ifndef strdup