From bd73bc03b0aacaa89c9c203b9b43cd08f1b1843b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 6 Aug 2024 16:08:03 +0200 Subject: [PATCH] Haiku: fix build for ZydisPerfTest.c (#517) --- dependencies/zycore | 2 +- examples/ZydisPerfTest.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dependencies/zycore b/dependencies/zycore index fb694025..419cde9e 160000 --- a/dependencies/zycore +++ b/dependencies/zycore @@ -1 +1 @@ -Subproject commit fb69402566a15a719e5df7a64a3db95105590b7e +Subproject commit 419cde9e9246370935a351fb3cc80b02fbc6abd6 diff --git a/examples/ZydisPerfTest.c b/examples/ZydisPerfTest.c index e895fc9d..09d0f421 100644 --- a/examples/ZydisPerfTest.c +++ b/examples/ZydisPerfTest.c @@ -37,7 +37,7 @@ # include #elif defined(ZYAN_APPLE) # include -#elif defined(ZYAN_LINUX) || defined(ZYAN_SOLARIS) +#elif defined(ZYAN_LINUX) || defined(ZYAN_SOLARIS) || defined(ZYAN_HAIKU) # include # include #elif defined(ZYAN_FREEBSD) @@ -147,7 +147,7 @@ static double GetCounter(void) return (double)elapsed * timebase_info.numer / timebase_info.denom / 1000000; } -#elif defined(ZYAN_LINUX) || defined(ZYAN_FREEBSD) || defined(ZYAN_SOLARIS) +#elif defined(ZYAN_LINUX) || defined(ZYAN_FREEBSD) || defined(ZYAN_SOLARIS) || defined(ZYAN_HAIKU) struct timeval t1;