diff options
author | brooks <brooks@FreeBSD.org> | 2015-10-31 00:50:27 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2015-10-31 00:50:27 +0800 |
commit | 73b8bb2ce1e69e126233be3791f49ec4d27e042f (patch) | |
tree | fc36ef7335feb11584340c7b4fba4ec5e5377fcc /lang | |
parent | c4ef4ddebf86f5d852af66d21dd0752ff02b205e (diff) | |
download | freebsd-ports-gnome-73b8bb2ce1e69e126233be3791f49ec4d27e042f.tar.gz freebsd-ports-gnome-73b8bb2ce1e69e126233be3791f49ec4d27e042f.tar.zst freebsd-ports-gnome-73b8bb2ce1e69e126233be3791f49ec4d27e042f.zip |
Fix build with GCC 4.9.
PR: 196712
Submitted by: kwm
Diffstat (limited to 'lang')
-rw-r--r-- | lang/clang36/Makefile | 1 | ||||
-rw-r--r-- | lang/clang36/files/patch-svn-226925 | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/lang/clang36/Makefile b/lang/clang36/Makefile index 1583d0b77820..ee6ec75392de 100644 --- a/lang/clang36/Makefile +++ b/lang/clang36/Makefile @@ -2,6 +2,7 @@ PORTNAME= clang DISTVERSION= 3.6.2 +PORTREVISON= 1 CATEGORIES= lang devel MASTER_SITES= http://llvm.org/releases/3.6.2/ PKGNAMESUFFIX= ${LLVM_SUFFIX} diff --git a/lang/clang36/files/patch-svn-226925 b/lang/clang36/files/patch-svn-226925 new file mode 100644 index 000000000000..4b04f1eb75eb --- /dev/null +++ b/lang/clang36/files/patch-svn-226925 @@ -0,0 +1,28 @@ +$FreeBSD$ +------------------------------------------------------------------------ +r226925 | rnk | 2015-01-23 19:16:25 +0000 (Fri, 23 Jan 2015) | 1 line + +Attempt to fix ::sscanf Cygwin build break reported in PR22302 +------------------------------------------------------------------------ +Index: lib/Driver/MSVCToolChain.cpp +=================================================================== +--- tools/clang/lib/Driver/MSVCToolChain.cpp (revision 226924) ++++ tools/clang/lib/Driver/MSVCToolChain.cpp (revision 226925) +@@ -22,6 +22,8 @@ + #include "llvm/Support/FileSystem.h" + #include "llvm/Support/Process.h" + ++#include <cstdio> ++ + // Include the necessary headers to interface with the Windows registry and + // environment. + #if defined(LLVM_ON_WIN32) +@@ -212,7 +214,7 @@ + "SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\$VERSION", + "InstallationFolder", path, &sdkVersion); + if (!sdkVersion.empty()) +- ::sscanf(sdkVersion.c_str(), "v%d.%d", &major, &minor); ++ std::sscanf(sdkVersion.c_str(), "v%d.%d", &major, &minor); + return hasSDKDir && !path.empty(); + } + |