From 5c6323854413dfb01ac85ba086944565cdc67b14 Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Mon, 25 Jul 2022 09:53:06 -0700 Subject: issue#403 Disable including `sys/time.h` on ARM to prevent conflicting declarations of `gettimeofday()`. --- src/libfaketime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libfaketime.c b/src/libfaketime.c index 9d3bc06..70ad4e3 100644 --- a/src/libfaketime.c +++ b/src/libfaketime.c @@ -76,6 +76,9 @@ /* pthread-handling contributed by David North, TDI in version 0.7 */ #if defined PTHREAD_SINGLETHREADED_TIME || defined FAKE_PTHREAD #include +#ifdef __aarch64__ +#define _SYS_TIME_H 1 +#endif #include #endif -- cgit v1.2.1