1 |
zx2c4 13/05/19 14:34:21 |
2 |
|
3 |
Modified: build-warnings.patch |
4 |
Log: |
5 |
Now compiles without strict aliasing rules. |
6 |
|
7 |
(Portage version: 2.2.0_alpha175/cvs/Linux x86_64, signed Manifest commit with key A5DE03AE) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 mail-mta/opensmtpd/files/build-warnings.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/files/build-warnings.patch?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/files/build-warnings.patch?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/opensmtpd/files/build-warnings.patch?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: build-warnings.patch |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-mta/opensmtpd/files/build-warnings.patch,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- build-warnings.patch 28 Feb 2013 17:57:15 -0000 1.1 |
23 |
+++ build-warnings.patch 19 May 2013 14:34:21 -0000 1.2 |
24 |
@@ -11,29 +11,3 @@ |
25 |
//#include "buffer.h" |
26 |
|
27 |
/* wrapper for signal interface */ |
28 |
-diff --git a/openbsd-compat/imsg-buffer.c b/openbsd-compat/imsg-buffer.c |
29 |
-index 7223ad7..7c4d686 100644 |
30 |
---- a/openbsd-compat/imsg-buffer.c |
31 |
-+++ b/openbsd-compat/imsg-buffer.c |
32 |
-@@ -256,7 +256,7 @@ msgbuf_write(struct msgbuf *msgbuf) |
33 |
- cmsg->cmsg_len = CMSG_LEN(sizeof(int)); |
34 |
- cmsg->cmsg_level = SOL_SOCKET; |
35 |
- cmsg->cmsg_type = SCM_RIGHTS; |
36 |
-- *(int *)CMSG_DATA(cmsg) = buf->fd; |
37 |
-+ memcpy(CMSG_DATA(cmsg), &buf->fd, sizeof(int)); |
38 |
- } |
39 |
- |
40 |
- again: |
41 |
-diff --git a/smtpd/mproc.c b/smtpd/mproc.c |
42 |
-index 7d9e593..d152784 100644 |
43 |
---- a/smtpd/mproc.c |
44 |
-+++ b/smtpd/mproc.c |
45 |
-@@ -230,7 +230,7 @@ msgbuf_write2(struct msgbuf *msgbuf) |
46 |
- cmsg->cmsg_len = CMSG_LEN(sizeof(int)); |
47 |
- cmsg->cmsg_level = SOL_SOCKET; |
48 |
- cmsg->cmsg_type = SCM_RIGHTS; |
49 |
-- *(int *)CMSG_DATA(cmsg) = buf->fd; |
50 |
-+ memcpy(CMSG_DATA(cmsg), &buf->fd, sizeof(int)); |
51 |
- } |
52 |
- |
53 |
- again: |