$NetBSD: patch-bb,v 1.1 2005/03/12 12:53:56 schwarz Exp $

--- xview.c.orig	2005-03-09 21:53:05.000000000 +0100
+++ xview.c	2005-03-09 21:53:26.000000000 +0100
@@ -27,6 +27,11 @@
 #include <X11/Xlib.h>
 #include <X11/Xresource.h>
 
+#ifdef __sgi
+/* for calloc(), malloc(), realloc() */
+#include <stdlib.h>
+#endif
+
 #define  DEF_FONT  "fixed"
 #define  F_ICON    0                  /* Icon index to frame array. */
 #define  F_WINDOW  1                  /* Window index to frame array. */
