$NetBSD: patch-am,v 1.3 2001/08/02 13:28:46 jlam Exp $

--- ordered2.c.orig	Fri Jul 23 23:54:01 1999
+++ ordered2.c
@@ -24,6 +24,9 @@
 #include <malloc.h>
 #include <memory.h>
 #include "video.h"
+#ifdef __NetBSD__
+#include <stdlib.h>
+#endif
 #include "proto.h"
 #include "dither.h"
 #include "my_dmalloc.h"
