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

--- gdith.c.orig	Sat Jul 24 00:04:42 1999
+++ gdith.c
@@ -23,6 +23,9 @@
 #include <config.h>
 #include <malloc.h>
 #include <memory.h>
+#ifdef __NetBSD__
+#include <stdlib.h>
+#endif
 #include "mpeg.h"
 #include "dither.h"
 #include "video.h"
