diff options
author | rakuco <rakuco@FreeBSD.org> | 2015-08-31 03:44:54 +0800 |
---|---|---|
committer | rakuco <rakuco@FreeBSD.org> | 2015-08-31 03:44:54 +0800 |
commit | 86f49ac2d7e77a4049639828cb5d0716cb338cd9 (patch) | |
tree | 98b3db3d4d6c912989d4e0cf83e6f54316a4711a | |
parent | 0c3462bc4c90e6290a8564de4080dc22bba2c44d (diff) | |
download | freebsd-ports-gnome-86f49ac2d7e77a4049639828cb5d0716cb338cd9.tar.gz freebsd-ports-gnome-86f49ac2d7e77a4049639828cb5d0716cb338cd9.tar.zst freebsd-ports-gnome-86f49ac2d7e77a4049639828cb5d0716cb338cd9.zip |
Add upstream patch to make the build work with non-base (ie. newer) GCCs.
The build was failing with, for example, lang/gcc48:
In file included from /usr/ports/devel/cmake/work/cmake-3.2.3/Source/cmGlobalNinjaGenerator.cxx:14:0:
/usr/ports/devel/cmake/work/cmake-3.2.3/Source/cmGeneratorExpressionEvaluationFile.h:39:64: error: 'mode_t' has not been declared
std::map<std::string, std::string> &outputFiles, mode_t perm);
-rw-r--r-- | devel/cmake/files/patch-git_c775072a | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/cmake/files/patch-git_c775072a b/devel/cmake/files/patch-git_c775072a new file mode 100644 index 000000000000..b867712d24a6 --- /dev/null +++ b/devel/cmake/files/patch-git_c775072a @@ -0,0 +1,20 @@ +commit c775072ad5a93306183f83f4396268b1690bb392 +Author: Brad King <brad.king@kitware.com> +Date: Wed Apr 22 09:58:46 2015 -0400 + + cmGeneratorExpressionEvaluationFile: Add missing sys/types.h include + + This is needed for 'mode_t', and on mingw-w64 in particular. We added + use of 'mode_t' in commit v3.2.0-rc1~421^2 (file(GENERATE): Use + permissions of input file if present, 2014-07-22). + +--- Source/cmGeneratorExpressionEvaluationFile.h ++++ Source/cmGeneratorExpressionEvaluationFile.h +@@ -13,6 +13,7 @@ + #define cmGeneratorExpressionEvaluationFile_h + + #include "cmStandardIncludes.h" ++#include <sys/types.h> + #include <cmsys/auto_ptr.hxx> + + #include "cmGeneratorExpression.h" |