From 77c8afb47f226476057898672cde7331d4a2e20a Mon Sep 17 00:00:00 2001 From: Jessica Hamilton Date: Sat, 16 Jun 2018 09:02:08 +0000 Subject: [PATCH] libroot_build: don't define system_time() on Haiku host. * On x86_64, this was causing an infinite loop between libroot & libroot_build in the host unzip tool. --- src/build/libroot/misc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/build/libroot/misc.cpp b/src/build/libroot/misc.cpp index 52c74f6f08..7bc51398cc 100644 --- a/src/build/libroot/misc.cpp +++ b/src/build/libroot/misc.cpp @@ -32,6 +32,7 @@ _debuggerAssert(const char *file, int line, const char *expression) return 0; } +#ifndef HAIKU_HOST_PLATFORM_HAIKU // system_time bigtime_t system_time(void) @@ -40,6 +41,7 @@ system_time(void) gettimeofday(&tm, NULL); return (int64)tm.tv_sec * 1000000LL + (int64)tm.tv_usec; } +#endif // snooze status_t