File: Add-missing-includes.patch

package info (click to toggle)
xfaces 3.3-30.3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,140 kB
  • sloc: ansic: 7,497; makefile: 441; sh: 5
file content (108 lines) | stat: -rw-r--r-- 2,143 bytes parent folder | download
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
diff -u xfaces-3.3/mail_box.c xfaces-3.3/mail_box.c
--- xfaces-3.3/mail_box.c
+++ xfaces-3.3/mail_box.c
@@ -33,6 +33,8 @@
  * 	Routines to parse the mail file.
 */
 
+#include <stdlib.h>
+
 #ifndef lint
 static char *RCSid = "$Id: mail_box.c,v 1.2 1994/02/23 13:17:02 liebman Exp $";
 #endif
diff -u xfaces-3.3/main.c xfaces-3.3/main.c
--- xfaces-3.3/main.c
+++ xfaces-3.3/main.c
@@ -72,6 +72,7 @@
 #ifdef __STDC__
 #include <stdlib.h>
 #endif
+#include <unistd.h>
 
 /*
  * The resources.
diff -u xfaces-3.3/pop_check.c xfaces-3.3/pop_check.c
--- xfaces-3.3/pop_check.c
+++ xfaces-3.3/pop_check.c
@@ -45,6 +45,8 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netdb.h>
+#include <unistd.h>
+#include <arpa/inet.h>
 
 FILE*	input = NULL;
 FILE*	output = NULL;
only in patch2:
unchanged:
--- xfaces-3.3.orig/cmd_check.c
+++ xfaces-3.3/cmd_check.c
@@ -42,6 +42,7 @@
 
 #include "faces.h"
 #include <sys/stat.h>
+#include <stdlib.h>
 
 static char*	buffer = NULL;
 static int	buffer_size = 0;
only in patch2:
unchanged:
--- xfaces-3.3.orig/face_binding.c
+++ xfaces-3.3/face_binding.c
@@ -57,6 +57,7 @@
 #endif
 
 #include "faces.h"
+#include <stdlib.h>
 
 
 /*
only in patch2:
unchanged:
--- xfaces-3.3.orig/face_command.c
+++ xfaces-3.3/face_command.c
@@ -43,6 +43,7 @@
 #include "faces.h"
 #include "face_command.h"
 #include "face_search.h"
+#include <stdlib.h>
 
 static FaceCommand* TheCommands;
 
only in patch2:
unchanged:
--- xfaces-3.3.orig/face_image_xface.c
+++ xfaces-3.3/face_image_xface.c
@@ -40,6 +40,7 @@
 static char *RCSid = "$Id: face_image_xface.c,v 1.3 1994/02/23 13:17:02 liebman Exp $";
 #endif
 
+#include <compface.h>
 #include "faces.h"
 #include "face_image.h"
 
only in patch2:
unchanged:
--- xfaces-3.3.orig/path.c
+++ xfaces-3.3/path.c
@@ -42,6 +42,7 @@
 
 #include "faces.h"
 #include <sys/stat.h>
+#include <unistd.h>
 
 char**
 PathParse(str)
only in patch2:
unchanged:
--- xfaces-3.3.orig/regexp.c
+++ xfaces-3.3/regexp.c
@@ -23,6 +23,8 @@
  * regular-expression syntax might require a total rethink.
  */
 #include <stdio.h>
+#include <string.h>
+
 #include "regexp.h"
 #include "regmagic.h"