File: portability_headers

package info (click to toggle)
ifmail 2.14tx8.10-26
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,908 kB
  • sloc: ansic: 30,320; perl: 4,955; yacc: 838; makefile: 717; sh: 424; cpp: 235; lex: 206; awk: 24
file content (135 lines) | stat: -rw-r--r-- 2,663 bytes parent folder | download | duplicates (4)
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
Support glibc 2.1.

Bug-Debian: http://bugs.debian.org/286428
Bug-Debian: http://bugs.debian.org/38362

--- a/ifcico/recvbark.c
+++ b/ifcico/recvbark.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <string.h>
 #include "lutil.h"
 #include "ttyio.h"
 #include "session.h"
--- a/ifcico/lastmtime.c
+++ b/ifcico/lastmtime.c
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <time.h>
 
 int main(argc,argv)
 int argc;
--- a/iflib/lutil.h
+++ b/iflib/lutil.h
@@ -32,6 +32,8 @@ char *printablec(char);
 extern int getopt();
 extern char *optarg;
 extern int optind;
+#else
+#include <getopt.h>
 #endif
 
 #if defined(HAS_TCP) || defined(HAS_TERM)
--- a/iflib/parsedate.y
+++ b/iflib/parsedate.y
@@ -23,6 +23,8 @@
 /* SUPPRESS 595 on yypvt *//* Automatic variable may be used before set */
 #include "configdata.h"
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <ctype.h>
 #include <sys/types.h>
 #if	defined(DO_NEED_TIME)
@@ -665,7 +667,7 @@ LookupWord(buff, length)
 }
 
 
-static int
+int
 date_lex()
 {
     register char	c;
--- a/iflib/gettime.c
+++ b/iflib/gettime.c
@@ -8,7 +8,6 @@
 #include <time.h>
 #endif	/* defined(DO_NEED_TIME) */
 #include <sys/time.h>
-#include "clibrary.h"
 #include "libinn.h"
 
 int
--- a/iflib/mime.c
+++ b/iflib/mime.c
@@ -2,6 +2,7 @@
 #include <ctype.h>
 #include <sys/types.h>
 #include <stdio.h>
+#include <string.h>
 #include "needed.h"
 #include "lutil.h"
 #include "xutil.h"
--- a/iflib/getopt.h
+++ b/iflib/getopt.h
@@ -4,4 +4,6 @@ extern int getopt();
 extern char *optarg;
 extern int optind;
 
+#else
+#include <getopt.h>
 #endif
--- a/ifgate/lastmtime.c
+++ b/ifgate/lastmtime.c
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <time.h>
 
 int main(argc,argv)
 int argc;
--- a/ifgate/nlindex.h
+++ b/ifgate/nlindex.h
@@ -34,7 +34,7 @@ extern struct _pkey {
 	unsigned char pflag;
 } pkey[];
 
-extern struct _fkey fkey[];
+extern struct _fkey *fkey;
 
 extern int initnl(void);
 
--- a/ifcico/session.c
+++ b/ifcico/session.c
@@ -51,7 +51,7 @@ char *dt;
 	fa_list *tmpl;
 #ifdef HAS_TCP
 	struct sockaddr_in peeraddr;
-	int addrlen=sizeof(struct sockaddr_in);
+	socklen_t addrlen=sizeof(struct sockaddr_in);
 #endif
 
 	session_flags=0;
--- a/iflib/config.h
+++ b/iflib/config.h
@@ -17,6 +17,8 @@
 #define _(String)	(String)
 #endif
 
+#include <time.h>
+
 #include "ftn.h"
 
 #ifndef AREA_LIST_TYPE
@@ -77,7 +79,7 @@ extern area_list *gatebaugroups;
 #endif
 
 extern long configverbose;
-extern long configtime;
+extern time_t configtime;
 extern long maxfsize;
 extern long maxpsize;
 extern long maxmsize;