--- /dev/null
+--- sysdig-0.13.0/driver/main.c.orig 2016-12-20 16:58:06.000000000 +0100
++++ sysdig-0.13.0/driver/main.c 2017-01-24 20:56:10.452973281 +0100
+@@ -1737,8 +1737,10 @@
+ }
+ }
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 1)
+ int __access_remote_vm(struct task_struct *t, struct mm_struct *mm, unsigned long addr,
+ void *buf, int len, int write);
++#endif
+
+ TRACEPOINT_PROBE(syscall_procexit_probe, struct task_struct *p)
+ {
Source0: https://github.com/draios/sysdig/archive/%{version}/%{pname}-%{version}.tar.gz
# Source0-md5: a8658daee5277d2a3a0bbb8381fb020f
Patch0: buildflags.patch
+Patch1: %{name}-linux4.patch
URL: http://www.sysdig.org/
BuildRequires: rpmbuild(macros) >= 1.701
BuildRequires: cmake >= 2.8.2
%prep
%setup -q -n %{pname}-%{version}
%patch0 -p1
+%patch1 -p1
%build
install -d build