diff options
author | miwi <miwi@FreeBSD.org> | 2006-12-16 17:56:51 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-12-16 17:56:51 +0800 |
commit | 177c161bc13fedcb9b072ca630a85c1e273ed7d2 (patch) | |
tree | c4e171886030231ef03bf605762e280d82afb429 /net-im/icb | |
parent | 840c92ae17f70051eefbca774d4ad042896b54df (diff) | |
download | freebsd-ports-gnome-177c161bc13fedcb9b072ca630a85c1e273ed7d2.tar.gz freebsd-ports-gnome-177c161bc13fedcb9b072ca630a85c1e273ed7d2.tar.zst freebsd-ports-gnome-177c161bc13fedcb9b072ca630a85c1e273ed7d2.zip |
- Fix build with gcc 4.X
PR: ports/106745
Submitted by: trasz
Diffstat (limited to 'net-im/icb')
-rw-r--r-- | net-im/icb/files/patch-icb::icb.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/net-im/icb/files/patch-icb::icb.h b/net-im/icb/files/patch-icb::icb.h new file mode 100644 index 000000000000..5867fa4c90df --- /dev/null +++ b/net-im/icb/files/patch-icb::icb.h @@ -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 |