1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/multimedia/linux_dvbwrapper-kmod/files/patch-linux__dvbwrapper.c
Jan Beich 80ceb9cbe8 multimedia/linux_dvbwrapper-kmod: unbreak on 12.0 after r312758
In file included from linux_dvbwrapper.c:43:
/usr/src/sys/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
2017-02-01 20:22:43 +00:00

15 lines
339 B
C

--- linux_dvbwrapper.c.orig 2017-02-01 19:40:17 UTC
+++ linux_dvbwrapper.c
@@ -38,10 +38,7 @@ __FBSDID("$FreeBSD$");
#include <sys/sysproto.h>
#include <sys/mman.h>
#include <sys/resourcevar.h>
-
-#if __FreeBSD_version > 900040
-#include <sys/capability.h>
-#endif
+#include <sys/capsicum.h>
#include <vm/vm.h>
#include <vm/pmap.h>