1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
From 6097dd9919ab94ef211bc30050f2c89828f50c83 Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Sat, 18 Jan 2014 16:45:03 +0000
Subject: Add some missing prototypes exposed by -Wall
These will have caused problems on machines where sizeof(int) !=
sizeof(void *).
Forwarded: no
Last-Update: 2010-03-02
Patch-Name: missing-includes.patch
---
dgif_lib.c | 2 +-
gifalloc.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/dgif_lib.c b/dgif_lib.c
index 6385dcd..4331f06 100644
--- a/dgif_lib.c
+++ b/dgif_lib.c
@@ -14,7 +14,6 @@
#ifdef __MSDOS__
#include <io.h>
#include <alloc.h>
-#include <stdlib.h>
#include <sys\stat.h>
#else
#include <sys/types.h>
@@ -23,6 +22,7 @@
#include <fcntl.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "gif_lib.h"
#include "gif_hash.h"
diff --git a/gifalloc.c b/gifalloc.c
index 0f708ea..bd28fff 100644
--- a/gifalloc.c
+++ b/gifalloc.c
@@ -10,6 +10,8 @@
* 15 Sep 92 - Version 1.0 by Eric Raymond. *
*****************************************************************************/
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "gif_lib.h"
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
|