summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/nolibc/std.h2
-rw-r--r--tools/include/nolibc/types.h9
2 files changed, 6 insertions, 5 deletions
diff --git a/tools/include/nolibc/std.h b/tools/include/nolibc/std.h
index 392f4dd94158..b9a116123902 100644
--- a/tools/include/nolibc/std.h
+++ b/tools/include/nolibc/std.h
@@ -29,6 +29,6 @@ typedef unsigned long nlink_t;
typedef int64_t off_t;
typedef signed long blksize_t;
typedef signed long blkcnt_t;
-typedef __kernel_time_t time_t;
+typedef __kernel_time64_t time_t;
#endif /* _NOLIBC_STD_H */
diff --git a/tools/include/nolibc/types.h b/tools/include/nolibc/types.h
index c8ed4d9cae8a..8f3cb18df7f1 100644
--- a/tools/include/nolibc/types.h
+++ b/tools/include/nolibc/types.h
@@ -17,14 +17,15 @@
#include <linux/wait.h>
struct timespec {
- __kernel_time_t tv_sec;
- long tv_nsec;
+ time_t tv_sec;
+ int64_t tv_nsec;
};
#define _STRUCT_TIMESPEC
+/* Never use with system calls */
struct timeval {
- __kernel_time_t tv_sec;
- __kernel_suseconds_t tv_usec;
+ time_t tv_sec;
+ int64_t tv_usec;
};
#define timeval __nolibc_kernel_timeval