--- a/gifout.c	1999-11-07 07:51:34.000000000 +0100
+++ b/gifout.c	2010-09-18 02:44:44.000000000 +0200
@@ -44,6 +44,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include "port.h"
 #include "gifint.h"
 #include "kljcpyrt.h"