summaryrefslogtreecommitdiff
path: root/backport/backport-include
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-02-08 00:52:42 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2014-02-08 13:34:15 +0100
commit0706870c48a0ba538e87381feca2bb0e204b6c71 (patch)
treedf4cda2553f3cc8f54e8e77638a223e6a9f71ab1 /backport/backport-include
parentcf0f1a0480d39f4593fc4f85cecf7af2aceb1a05 (diff)
backports: add compat_put_timespec()
This is used by v4l2-compat-ioctl32.c Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport/backport-include')
-rw-r--r--backport/backport-include/linux/compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/backport/backport-include/linux/compat.h b/backport/backport-include/linux/compat.h
index 22db9b0f..07accd2e 100644
--- a/backport/backport-include/linux/compat.h
+++ b/backport/backport-include/linux/compat.h
@@ -13,4 +13,9 @@
#endif
#endif
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0))
+#define compat_put_timespec LINUX_BACKPORT(compat_put_timespec)
+extern int compat_put_timespec(const struct timespec *, void __user *);
+#endif
+
#endif /* __BACKPORT_COMPAT_H */