diff options
author | ume <ume@FreeBSD.org> | 2005-02-25 03:31:22 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-02-25 03:31:22 +0800 |
commit | 61f6ed734c2d8f3ff0622858b8a440a2a09ed51c (patch) | |
tree | 97062164700bf22ff5ecb0f8ade96bfdba25a2e3 | |
parent | 9f31e91703e10cbfb5967c250cc21493f7085957 (diff) | |
download | freebsd-ports-gnome-61f6ed734c2d8f3ff0622858b8a440a2a09ed51c.tar.gz freebsd-ports-gnome-61f6ed734c2d8f3ff0622858b8a440a2a09ed51c.tar.zst freebsd-ports-gnome-61f6ed734c2d8f3ff0622858b8a440a2a09ed51c.zip |
make it compilable with Intel(R) C Compiler.
why icc defines __GNUC__?
Reported by: Attila Nagy <bra@fsn.hu>
Suggested by: hrs, nyan
Tested by: Attila Nagy <bra@fsn.hu>
-rw-r--r-- | mail/cyrus-imapd22/files/patch-lib::libcyr_cfg.c | 13 | ||||
-rw-r--r-- | mail/cyrus-imapd23/files/patch-lib::libcyr_cfg.c | 13 | ||||
-rw-r--r-- | mail/cyrus-imapd24/files/patch-lib::libcyr_cfg.c | 13 |
3 files changed, 39 insertions, 0 deletions
diff --git a/mail/cyrus-imapd22/files/patch-lib::libcyr_cfg.c b/mail/cyrus-imapd22/files/patch-lib::libcyr_cfg.c new file mode 100644 index 000000000000..5cbb64001209 --- /dev/null +++ b/mail/cyrus-imapd22/files/patch-lib::libcyr_cfg.c @@ -0,0 +1,13 @@ +Index: lib/libcyr_cfg.c +diff -u -p lib/libcyr_cfg.c.orig lib/libcyr_cfg.c +--- lib/libcyr_cfg.c.orig Wed Mar 10 00:05:58 2004 ++++ lib/libcyr_cfg.c Fri Feb 25 00:06:44 2005 +@@ -52,7 +52,7 @@ + #include "libcyr_cfg.h" + #include "cyrusdb.h" + +-#if defined(__GNUC__) && __GNUC__ > 1 ++#if defined(__GNUC__) && __GNUC__ > 1 && !defined(__INTEL_COMPILER) + /* We can use the GCC union constructor extension */ + #define CFGVAL(t,v) (union cyrus_config_value)((t)(v)) + #else diff --git a/mail/cyrus-imapd23/files/patch-lib::libcyr_cfg.c b/mail/cyrus-imapd23/files/patch-lib::libcyr_cfg.c new file mode 100644 index 000000000000..5cbb64001209 --- /dev/null +++ b/mail/cyrus-imapd23/files/patch-lib::libcyr_cfg.c @@ -0,0 +1,13 @@ +Index: lib/libcyr_cfg.c +diff -u -p lib/libcyr_cfg.c.orig lib/libcyr_cfg.c +--- lib/libcyr_cfg.c.orig Wed Mar 10 00:05:58 2004 ++++ lib/libcyr_cfg.c Fri Feb 25 00:06:44 2005 +@@ -52,7 +52,7 @@ + #include "libcyr_cfg.h" + #include "cyrusdb.h" + +-#if defined(__GNUC__) && __GNUC__ > 1 ++#if defined(__GNUC__) && __GNUC__ > 1 && !defined(__INTEL_COMPILER) + /* We can use the GCC union constructor extension */ + #define CFGVAL(t,v) (union cyrus_config_value)((t)(v)) + #else diff --git a/mail/cyrus-imapd24/files/patch-lib::libcyr_cfg.c b/mail/cyrus-imapd24/files/patch-lib::libcyr_cfg.c new file mode 100644 index 000000000000..5cbb64001209 --- /dev/null +++ b/mail/cyrus-imapd24/files/patch-lib::libcyr_cfg.c @@ -0,0 +1,13 @@ +Index: lib/libcyr_cfg.c +diff -u -p lib/libcyr_cfg.c.orig lib/libcyr_cfg.c +--- lib/libcyr_cfg.c.orig Wed Mar 10 00:05:58 2004 ++++ lib/libcyr_cfg.c Fri Feb 25 00:06:44 2005 +@@ -52,7 +52,7 @@ + #include "libcyr_cfg.h" + #include "cyrusdb.h" + +-#if defined(__GNUC__) && __GNUC__ > 1 ++#if defined(__GNUC__) && __GNUC__ > 1 && !defined(__INTEL_COMPILER) + /* We can use the GCC union constructor extension */ + #define CFGVAL(t,v) (union cyrus_config_value)((t)(v)) + #else |