aboutsummaryrefslogtreecommitdiff
path: root/devel/cmake
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2015-12-02 10:58:50 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2015-12-02 10:58:50 +0000
commit7a323ebcd6a7490b91e99297a6e2a329ab5479f2 (patch)
tree51dcd4c8ede6fc3e348cfa076f978c2beda5cfed /devel/cmake
parent169aacbd170a8b0eed58f5c8696dd65e3ef08fbf (diff)
downloadports-7a323ebcd6a7490b91e99297a6e2a329ab5479f2.tar.gz
ports-7a323ebcd6a7490b91e99297a6e2a329ab5479f2.zip
Notes
Diffstat (limited to 'devel/cmake')
-rw-r--r--devel/cmake/files/patch-git_16f5d18422
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/cmake/files/patch-git_16f5d184 b/devel/cmake/files/patch-git_16f5d184
new file mode 100644
index 000000000000..c37e37082a24
--- /dev/null
+++ b/devel/cmake/files/patch-git_16f5d184
@@ -0,0 +1,22 @@
+Fixes the build with recent GCCs (at least 4.8+).
+
+commit 16f5d1843b3720729f50376f522550fcfa787a3c
+Author: Kylie McClain <somasissounds@gmail.com>
+Date: Wed Nov 25 18:12:06 2015 -0500
+
+ Include `sys/types.h` header to get `mode_t`
+
+ Do not depend on it being included by other system headers.
+ It is not included by others on musl-libc, for example.
+
+--- Source/cmStandardIncludes.h
++++ Source/cmStandardIncludes.h
+@@ -54,6 +54,8 @@
+
+ #if defined( _MSC_VER )
+ typedef unsigned short mode_t;
++#else
++# include <sys/types.h>
+ #endif
+
+ // use this class to shrink the size of symbols in .o files