Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-mta/mini-qmail/files: 1.06-headers.patch
Date: Sun, 08 Jan 2012 03:40:09
Message-Id: 20120108033959.A663620034@flycatcher.gentoo.org
1 vapier 12/01/08 03:39:59
2
3 Added: 1.06-headers.patch
4 Log:
5 Fix build failure with newer glibcs #398109 by Markos Chandras.
6
7 (Portage version: 2.2.0_alpha81/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 mail-mta/mini-qmail/files/1.06-headers.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/mini-qmail/files/1.06-headers.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/mini-qmail/files/1.06-headers.patch?rev=1.1&content-type=text/plain
14
15 Index: 1.06-headers.patch
16 ===================================================================
17 --- a/qmail-pw2u.c
18 +++ b/qmail-pw2u.c
19 @@ -1,3 +1,4 @@
20 +#include <unistd.h>
21 #include <sys/types.h>
22 #include <sys/stat.h>
23 #include "substdio.h"
24 --- a/qmail-qmtpd.c
25 +++ b/qmail-qmtpd.c
26 @@ -1,3 +1,4 @@
27 +#include <unistd.h>
28 #include "stralloc.h"
29 #include "substdio.h"
30 #include "qmail.h"
31 --- a/readwrite.h
32 +++ b/readwrite.h
33 @@ -1,7 +1,7 @@
34 #ifndef READWRITE_H
35 #define READWRITE_H
36
37 -extern int read();
38 -extern int write();
39 +#include <fcntl.h>
40 +#include <unistd.h>
41
42 #endif
43 --- a/substdio.h
44 +++ b/substdio.h
45 @@ -1,6 +1,8 @@
46 #ifndef SUBSTDIO_H
47 #define SUBSTDIO_H
48
49 +#include <unistd.h>
50 +
51 typedef struct substdio {
52 char *x;
53 int p;