From: | "Justin Lecher (jlec)" <jlec@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in mail-mta/nullmailer/files: nullmailer-1.13-unistd.h.patch |
Date: | Mon, 02 Feb 2015 11:50:18 |
Message-Id: | 20150202115013.36BC310E45@oystercatcher.gentoo.org |
1 | jlec 15/02/02 11:50:13 |
2 | |
3 | Added: nullmailer-1.13-unistd.h.patch |
4 | Log: |
5 | mail-mta/nullmailer: Import header in portable way, #538482 |
6 | |
7 | (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) |
8 | |
9 | Revision Changes Path |
10 | 1.1 mail-mta/nullmailer/files/nullmailer-1.13-unistd.h.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/files/nullmailer-1.13-unistd.h.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/files/nullmailer-1.13-unistd.h.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: nullmailer-1.13-unistd.h.patch |
16 | =================================================================== |
17 | From 5e9316c669e752fcd9058b28952919bccd967640 Mon Sep 17 00:00:00 2001 |
18 | From: "Anthony G. Basile" <blueness@g.o> |
19 | Date: Sat, 31 Jan 2015 23:55:48 +0000 |
20 | Subject: [PATCH] lib/fdbuf/fdbuf.h: include <unistd.h> |
21 | |
22 | class fdobuf in lib/fdbuf/fdobuf.h makes use of uid_t and gid_t, |
23 | but these are defined in <unistd.h> according to POSIX. With libc's |
24 | that adhere strictly to standards, like musl, this breaks the build. |
25 | |
26 | We add <unistd.h> to fdbuf.h which is included by fdbuf.h. |
27 | |
28 | Signed-off-by: Anthony G. Basile <blueness@g.o> |
29 | --- |
30 | lib/fdbuf/fdbuf.h | 1 + |
31 | 1 file changed, 1 insertion(+) |
32 | |
33 | diff --git a/lib/fdbuf/fdbuf.h b/lib/fdbuf/fdbuf.h |
34 | index 4b0e9cb..0054b01 100644 |
35 | --- a/lib/fdbuf/fdbuf.h |
36 | +++ b/lib/fdbuf/fdbuf.h |
37 | @@ -20,6 +20,7 @@ |
38 | #include "config.h" |
39 | #include <string.h> |
40 | #include <fcntl.h> |
41 | +#include <unistd.h> |
42 | |
43 | #ifdef _REENTRANT |
44 | #include <pthread.h> |