aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-02-02 04:22:52 +0800
committerjbeich <jbeich@FreeBSD.org>2017-02-02 04:22:52 +0800
commit24e3ab7de3152d5b9b0c0729e01d8074a90761fa (patch)
tree0665442d7abf447a2108bcdc0fcadccad11d03de
parente1b7664f3858f6352d95df422ce1aa1473de6fc9 (diff)
downloadfreebsd-ports-gnome-24e3ab7de3152d5b9b0c0729e01d8074a90761fa.tar.gz
freebsd-ports-gnome-24e3ab7de3152d5b9b0c0729e01d8074a90761fa.tar.zst
freebsd-ports-gnome-24e3ab7de3152d5b9b0c0729e01d8074a90761fa.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
-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>