ports/106745: [PATCH] net-im/icb: fix build with gcc41
trasz
trasz at pin.if.uz.zgora.pl
Fri Dec 15 00:54:28 UTC 2006
>Number: 106745
>Category: ports
>Synopsis: [PATCH] net-im/icb: fix build with gcc41
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Dec 15 00:50:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: trasz
>Release: FreeBSD 6.1-RELEASE-p10 i386
>Organization:
>Environment:
System: FreeBSD pin.if.uz.zgora.pl 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Wed Nov 15 19:16:30 CET 2006
>Description:
Fix build with gcc41.
http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.7.2006121307/icb-5.1.0_3.log
Added file(s):
- files/patch-icb::icb.h
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- icb-5.1.0_3.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/net-im/icb/files/patch-icb::icb.h /home/trasz/icb/files/patch-icb::icb.h
--- /usr/ports/net-im/icb/files/patch-icb::icb.h Thu Jan 1 01:00:00 1970
+++ /home/trasz/icb/files/patch-icb::icb.h Fri Dec 15 01:38:09 2006
@@ -0,0 +1,34 @@
+--- icb/icb.h.orig Fri Dec 15 01:33:57 2006
++++ icb/icb.h Fri Dec 15 01:34:21 2006
+@@ -129,15 +129,6 @@
+ #endif
+
+
+-/* include function prototypes if ANSI compiler */
+-/* otherwise, include file that shows return type for each function */
+-
+-#if defined __STDC__ || defined __GNUC__
+-#include "protos.h"
+-#else
+-#include "funcs.h"
+-#endif
+-
+ #define MAX_HOSTLEN 256
+ #define MAX_PASSLEN 256
+
+@@ -182,6 +173,15 @@
+ ColPERSFROMHILITE,
+ ColTIMESTAMP
+ } colorlist;
++
++/* include function prototypes if ANSI compiler */
++/* otherwise, include file that shows return type for each function */
++
++#if defined __STDC__ || defined __GNUC__
++#include "protos.h"
++#else
++#include "funcs.h"
++#endif
+
+
+ /* Returns an ANSI color sequence for 'primary', or for
--- icb-5.1.0_3.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list