mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
bspatch: Remove backwards-compatibility sys/capability.h support
bspatch previously included sys/capability.h or sys/capsicum.h based on __FreeBSD_version, as FreeBSD is the upstream for bsdiff and we may see this file incorporated into other third-party software. The Capsicum header is now installed as sys/capsicum.h in stable/10 and FreeBSD 10.3, so we can just use sys/capsicum.h and simplify the logic. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D7954
This commit is contained in:
parent
6f70040b38
commit
23648b7d73
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306026
|
@ -29,12 +29,9 @@ __FBSDID("$FreeBSD$");
|
|||
|
||||
#if defined(__FreeBSD__)
|
||||
#include <sys/param.h>
|
||||
#if __FreeBSD_version >= 1100014
|
||||
#if __FreeBSD_version >= 1001511
|
||||
#include <sys/capsicum.h>
|
||||
#define HAVE_CAPSICUM
|
||||
#elif __FreeBSD_version >= 1000000
|
||||
#include <sys/capability.h>
|
||||
#define HAVE_CAPSICUM
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue