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:
14
devel/py-pycapsicum/files/patch-__pycapsicum.c
Normal file
14
devel/py-pycapsicum/files/patch-__pycapsicum.c
Normal 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"
|
||||
|
||||
Reference in New Issue
Block a user