summaryrefslogtreecommitdiff
path: root/mail-mta/mini-qmail/files/1.06-headers.patch
blob: 566babfa6290c3107f07e4b3dd2f13c003639ef7 (plain)
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
--- a/qmail-pw2u.c
+++ b/qmail-pw2u.c
@@ -1,3 +1,4 @@
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include "substdio.h"
--- a/qmail-qmtpd.c
+++ b/qmail-qmtpd.c
@@ -1,3 +1,4 @@
+#include <unistd.h>
 #include "stralloc.h"
 #include "substdio.h"
 #include "qmail.h"
--- a/readwrite.h
+++ b/readwrite.h
@@ -1,7 +1,7 @@
 #ifndef READWRITE_H
 #define READWRITE_H
 
-extern int read();
-extern int write();
+#include <fcntl.h>
+#include <unistd.h>
 
 #endif
--- a/substdio.h
+++ b/substdio.h
@@ -1,6 +1,8 @@
 #ifndef SUBSTDIO_H
 #define SUBSTDIO_H
 
+#include <unistd.h>
+
 typedef struct substdio {
   char *x;
   int p;