FreeBSD Bugzilla – Attachment 81581 Details for
Bug 116820
[PATCH] irc/dircproxy: Fix build with gcc 4.2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
dircproxy-1.0.5.patch
dircproxy-1.0.5.patch (text/plain), 2.81 KB, created by
Martin Wilke
on 2007-10-02 12:50:00 UTC
(
hide
)
Description:
dircproxy-1.0.5.patch
Filename:
MIME Type:
Creator:
Martin Wilke
Created:
2007-10-02 12:50:00 UTC
Size:
2.81 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/pcvs/ports/irc/dircproxy/Makefile,v >retrieving revision 1.11 >diff -u -u -r1.11 Makefile >--- Makefile 2 Oct 2007 01:45:06 -0000 1.11 >+++ Makefile 2 Oct 2007 11:26:12 -0000 >@@ -21,10 +21,4 @@ > post-install: > @${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGMESSAGE} > >-.include <bsd.port.pre.mk> >- >-.if ${OSVERSION} >= 700042 >-BROKEN= Does not compile with GCC 4.2 >-.endif >- >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >Index: files/patch-src_dcc_net.c >=================================================================== >RCS file: files/patch-src_dcc_net.c >diff -N files/patch-src_dcc_net.c >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-src_dcc_net.c 2 Oct 2007 11:32:20 -0000 >@@ -0,0 +1,11 @@ >+--- src/dcc_net.c.orig 2007-10-02 13:31:06.000000000 +0200 >++++ src/dcc_net.c 2007-10-02 13:31:27.000000000 +0200 >+@@ -364,7 +364,7 @@ >+ n = p->next; >+ _dccnet_free(p); >+ >+- p = (l ? l->next : proxies) = n; >++ p = *(l ? &(l->next) : &(proxies)) = n; >+ } else { >+ l = p; >+ p = p->next; >Index: files/patch-src_irc_server.c >=================================================================== >RCS file: files/patch-src_irc_server.c >diff -N files/patch-src_irc_server.c >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-src_irc_server.c 2 Oct 2007 11:29:55 -0000 >@@ -0,0 +1,20 @@ >+--- src/irc_server.c.orig 2007-10-02 13:27:29.000000000 +0200 >++++ src/irc_server.c 2007-10-02 13:28:07.000000000 +0200 >+@@ -700,7 +700,7 @@ >+ free(s); >+ >+ /* Was in the squelch list, so remove it and stop looking */ >+- s = (l ? l->next : p->squelch_modes) = n; >++ s = *(l ? &(l->next) : &(p->squelch_modes)) = n; >+ squelch = 1; >+ break; >+ } else { >+@@ -741,7 +741,7 @@ >+ free(s); >+ >+ /* Was in the squelch list, so remove it and stop looking */ >+- s = (l ? l->next : p->squelch_modes) = n; >++ s = *(l ? &(l->next) : &(p->squelch_modes)) = n; >+ squelch = 1; >+ break; >+ } else { >Index: files/patch-src_net.c >=================================================================== >RCS file: files/patch-src_net.c >diff -N files/patch-src_net.c >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-src_net.c 2 Oct 2007 11:34:01 -0000 >@@ -0,0 +1,11 @@ >+--- src/net.c.orig 2007-10-02 13:33:00.000000000 +0200 >++++ src/net.c 2007-10-02 13:33:28.000000000 +0200 >+@@ -459,7 +459,7 @@ >+ return 0; >+ } >+ >+- l = &(buff == SB_IN ? s->in_buff_last : s->out_buff_last); >++ l = (buff == SB_IN ? &(s->in_buff_last) : &(s->out_buff_last)); >+ >+ /* Check whether we can just add to the existing buffer */ >+ if ((mode == SM_RAW) && *l && ((*l)->mode == mode)) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 116820
: 81581