Fix build: capability.h has been renamed to capsicum.h on all supported

OSVERSIONs.  For some reason the OSVERSION check was not working but
since it is OBE there is no reason to debug that.

See https://svnweb.freebsd.org/base?view=revision&revision=263232 .

This change needs to be submitted upstream.
This commit is contained in:
Mark Linimon
2019-09-01 13:08:34 +00:00
parent 07922727e0
commit fc682da13a

View File

@@ -0,0 +1,14 @@
--- _pycapsicum.c.orig 2019-09-01 13:05:23 UTC
+++ _pycapsicum.c
@@ -32,11 +32,7 @@
#include <fcntl.h>
#include "Python.h"
-#if OSVERSION < 1020000
-#include "sys/capability.h"
-#else
#include "sys/capsicum.h"
-#endif
#include "sys/caprights.h"
#include "structmember.h"