[OpenWrt-Devel] [PATCH] netifd: fix compilation with musl 1.2.0
Rosen Penev
rosenp at gmail.com
Wed Mar 25 01:56:19 EDT 2020
The normal syscall is removed. Use the 64 bit version as musl 1.2.0
defaults to a 64-bit time_t.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
system-linux.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/system-linux.c b/system-linux.c
index d533be8..ff4e1fe 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -59,6 +59,10 @@
#define IFA_FLAGS (IFA_MULTICAST + 1)
#endif
+#ifndef __NR_clock_gettime
+#define __NR_clock_gettime __NR_clock_gettime64
+#endif
+
#include <string.h>
#include <fcntl.h>
#include <glob.h>
--
2.25.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list