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
This commit is contained in:
Jan Beich 2017-02-01 20:22:52 +00:00
parent 80ceb9cbe8
commit d6987a4242
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433102

View file

@ -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>