1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00

Remove support for FreeBSD 10.x.

MFC after:	1 month
This commit is contained in:
Xin LI 2019-07-18 07:26:30 +00:00
parent 18cd8a2df8
commit c93b6e5fa2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350108

View File

@ -29,12 +29,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#if defined(__FreeBSD__)
#include <sys/param.h>
#if __FreeBSD_version >= 1001511
#ifndef WITHOUT_CAPSICUM
#include <sys/capsicum.h>
#define HAVE_CAPSICUM
#endif
#endif
#include <bzlib.h>
@ -107,7 +103,7 @@ int main(int argc, char *argv[])
off_t oldpos, newpos;
off_t ctrl[3];
off_t i, lenread, offset;
#ifdef HAVE_CAPSICUM
#ifndef WITHOUT_CAPSICUM
cap_rights_t rights_dir, rights_ro, rights_wr;
#endif
@ -143,7 +139,7 @@ int main(int argc, char *argv[])
err(1, "open(%s)", argv[2]);
atexit(exit_cleanup);
#ifdef HAVE_CAPSICUM
#ifndef WITHOUT_CAPSICUM
if (cap_enter() < 0)
err(1, "failed to enter security sandbox");