diff options
author | gahr <gahr@FreeBSD.org> | 2017-09-04 15:58:31 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2017-09-04 15:58:31 +0800 |
commit | 110d1bf2c47b5bc46ad796f9638c9f3f420d2d82 (patch) | |
tree | c707a4501aff37d169a5bb80111e082b35fe8260 /lang | |
parent | 8e67584a18d9f55639e79efa0fc987dd605084fc (diff) | |
download | freebsd-ports-gnome-110d1bf2c47b5bc46ad796f9638c9f3f420d2d82.tar.gz freebsd-ports-gnome-110d1bf2c47b5bc46ad796f9638c9f3f420d2d82.tar.zst freebsd-ports-gnome-110d1bf2c47b5bc46ad796f9638c9f3f420d2d82.zip |
lang/tcl86: fix build with old GCC versions
PR: 222034
Submitted by: jhibbits
Obtained from: http://core.tcl.tk/tcl/info/ba30aa3b1c7cc2c9
Diffstat (limited to 'lang')
-rw-r--r-- | lang/tcl86/files/patch-unix-tclUnixSock.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/tcl86/files/patch-unix-tclUnixSock.c b/lang/tcl86/files/patch-unix-tclUnixSock.c new file mode 100644 index 000000000000..f6ff7fdf0dd2 --- /dev/null +++ b/lang/tcl86/files/patch-unix-tclUnixSock.c @@ -0,0 +1,17 @@ +--- unix/tclUnixSock.c.orig 2017-09-04 07:52:03 UTC ++++ unix/tclUnixSock.c +@@ -713,10 +713,14 @@ IPv6AddressNeedsNumericRendering( + * at least some versions of OSX. + */ + ++#if defined (__clang__) || ((__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))) + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" ++#endif + if (!IN6_IS_ADDR_V4MAPPED(&addr)) { ++#if defined (__clang__) || ((__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))) + #pragma GCC diagnostic pop ++#endif + return 0; + } + |