summaryrefslogtreecommitdiff
path: root/math/snns/patches/patch-aa
blob: 85e751bf8bc5aca5ad6658632b20d5ec00b5bfd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$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