File: missing-includes.patch

package info (click to toggle)
imaptool 0.9-10
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 324 kB
  • ctags: 489
  • sloc: ansic: 3,740; makefile: 97
file content (40 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download | duplicates (2)
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
Description: Add some missing prototypes exposed by -Wall
 These will have caused problems on machines where sizeof(int) !=
 sizeof(void *).
Author: Colin Watson <cjwatson@debian.org>
Forwarded: no
Last-Update: 2010-03-02

Index: b/dgif_lib.c
===================================================================
--- 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"
Index: b/gifalloc.c
===================================================================
--- 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))