1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-15 00:47:05 +00:00
termux-packages/packages/loksh/time.patch
2023-10-21 21:38:11 +03:00

14 lines
383 B
Diff

+++ loksh/c_sh.c
@@ -21,6 +21,11 @@
static void p_tv(struct shf *, int, struct timeval *, int, char *, char *);
static void p_ts(struct shf *, int, struct timespec *, int, char *, char *);
+#define TIMEVAL_TO_TIMESPEC(tv, ts) { \
+ (ts)->tv_sec = (tv)->tv_sec; \
+ (ts)->tv_nsec = (tv)->tv_usec * 1000; \
+}
+
/* :, false and true */
int
c_label(char **wp)