diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2017-07-02 16:41:37 +0200 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2017-07-02 16:41:37 +0200 |
commit | 52409fae3e4b8d16b68b61902fc09075cd97b75d (patch) | |
tree | e67110145c5843b3f199d872ae285e2546c9ebe2 /backport-include/linux/time64.h |
Backports generated from 4.11 kernel
Initial commit.
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'backport-include/linux/time64.h')
-rw-r--r-- | backport-include/linux/time64.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/backport-include/linux/time64.h b/backport-include/linux/time64.h new file mode 100644 index 0000000..609b890 --- /dev/null +++ b/backport-include/linux/time64.h @@ -0,0 +1,24 @@ +#ifndef __BACKPORT_LINUX_TIME64_H +#define __BACKPORT_LINUX_TIME64_H +#if LINUX_VERSION_IS_GEQ(3,17,0) +#include_next <linux/time64.h> +#else +#include <linux/time.h> +#endif + +#if LINUX_VERSION_IS_LESS(3,17,0) +#define timespec64_equal timespec_equal +#define timespec64_compare timespec_compare +#define set_normalized_timespec64 set_normalized_timespec +#define timespec64_add_safe timespec_add_safe +#define timespec64_add timespec_add +#define timespec64_sub timespec_sub +#define timespec64_valid timespec_valid +#define timespec64_valid_strict timespec_valid_strict +#define timespec64_to_ns timespec_to_ns +#define ns_to_timespec64 ns_to_timespec +#define timespec64_add_ns timespec_add_ns +#define timespec64 timespec +#endif /* LINUX_VERSION_IS_LESS(3,17,0) */ + +#endif /* __BACKPORT_LINUX_TIME64_H */ |