$NetBSD: patch-am,v 1.2 2001/04/11 21:32:01 jtb Exp $

--- sd/tr/trdiagram.c.orig	Fri Jun 18 15:30:17 1999
+++ sd/tr/trdiagram.c
@@ -32,7 +32,10 @@
 #include "trgraph.h"
 #include "trview.h"
 #include "diagramchecks.h"
- 
+#include <limits.h>
+
+#define MAXINT INT_MAX
+
 TRDiagram::TRDiagram(Config *c, TRWindow *d, TRViewer *v, TRGraph *g): 
 		Diagram(c,d,v,g) {
 	UpdateNodeType(1);
