aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2017-02-01 20:22:52 +0000
committerJan Beich <jbeich@FreeBSD.org>2017-02-01 20:22:52 +0000
commitd6987a424270d81ee3f917a209c8be063ce1e3a0 (patch)
tree0665442d7abf447a2108bcdc0fcadccad11d03de
parent80ceb9cbe8318cd34d9c557ea484477e42241332 (diff)
downloadports-d6987a424270d81ee3f917a209c8be063ce1e3a0.tar.gz
ports-d6987a424270d81ee3f917a209c8be063ce1e3a0.zip
www/mohawk: unbreak on 12.0 after r312758
In file included from parse.c:17: In file included from parse.y:34: /usr/include/sys/capability.h:41:2: error: this file includes <sys/capability.h> which is deprecated [-Werror,-W#warnings] #warning this file includes <sys/capability.h> which is deprecated ^ Reported by: pkg-fallout
Notes
Notes: svn path=/head/; revision=433102
-rw-r--r--www/mohawk/files/patch-parse.y18
1 files changed, 18 insertions, 0 deletions
diff --git a/www/mohawk/files/patch-parse.y b/www/mohawk/files/patch-parse.y
new file mode 100644
index 000000000000..8c2e5624f676
--- /dev/null
+++ b/www/mohawk/files/patch-parse.y
@@ -0,0 +1,18 @@
+--- parse.y.orig 2017-01-27 06:01:59 UTC
++++ parse.y
+@@ -30,8 +30,14 @@
+ #include <sys/param.h>
+ #include <sys/socket.h>
+ #include <sys/stat.h>
+-#if defined(__FreeBSD_version) && __FreeBSD_version >= 1000510
++#if defined(__FreeBSD__)
++#if __FreeBSD_version >= 1000510
++# if __FreeBSD_version >= 1200000
++#include <sys/capsicum.h>
++# else
+ #include <sys/capability.h>
++# endif
++#endif
+ #endif
+
+ #include <net/if.h>