From 633d5cec9136b28d8521e0a53d465d6962134d74 Mon Sep 17 00:00:00 2001 From: Joao Antonio Cardoso Date: Fri, 20 Mar 2020 20:12:32 -0300 Subject: [PATCH] dumb mod just to test meson --- src/lib/evil/unposix/sys/time.c | 4 +++- src/lib/evil/unposix/sys/time.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/evil/unposix/sys/time.c b/src/lib/evil/unposix/sys/time.c index d09e68dcb1..199a571ab7 100644 --- a/src/lib/evil/unposix/sys/time.c +++ b/src/lib/evil/unposix/sys/time.c @@ -1,4 +1,4 @@ -#include +#include int gettimeofday(struct timeval * tp, struct timezone * tzp) { @@ -20,6 +20,8 @@ int gettimeofday(struct timeval * tp, struct timezone * tzp) return 0; } +int localtime_s(struct tm * result, const time_t * time){ return 0; } + struct tm *localtime_r(const time_t * time, struct tm * result) { localtime_s(result, time); diff --git a/src/lib/evil/unposix/sys/time.h b/src/lib/evil/unposix/sys/time.h index bc38968472..0e6bb2a9ad 100644 --- a/src/lib/evil/unposix/sys/time.h +++ b/src/lib/evil/unposix/sys/time.h @@ -7,6 +7,7 @@ // Windows Kit for Windows 10 already defines `struct timeval` and `time_t` #include #include +#include typedef unsigned short u_short;