svn commit: r433102 - head/www/mohawk/files
Jan Beich
jbeich at FreeBSD.org
Wed Feb 1 20:22:53 UTC 2017
Author: jbeich
Date: Wed Feb 1 20:22:52 2017
New Revision: 433102
URL: https://svnweb.freebsd.org/changeset/ports/433102
Log:
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
Added:
head/www/mohawk/files/patch-parse.y (contents, props changed)
Added: head/www/mohawk/files/patch-parse.y
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/mohawk/files/patch-parse.y Wed Feb 1 20:22:52 2017 (r433102)
@@ -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>
More information about the svn-ports-all
mailing list