Skip to content

Commit bd73bc0

Browse files
authored
Haiku: fix build for ZydisPerfTest.c (#517)
1 parent af792c4 commit bd73bc0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dependencies/zycore

examples/ZydisPerfTest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# include <windows.h>
3838
#elif defined(ZYAN_APPLE)
3939
# include <mach/mach_time.h>
40-
#elif defined(ZYAN_LINUX) || defined(ZYAN_SOLARIS)
40+
#elif defined(ZYAN_LINUX) || defined(ZYAN_SOLARIS) || defined(ZYAN_HAIKU)
4141
# include <sys/time.h>
4242
# include <pthread.h>
4343
#elif defined(ZYAN_FREEBSD)
@@ -147,7 +147,7 @@ static double GetCounter(void)
147147
return (double)elapsed * timebase_info.numer / timebase_info.denom / 1000000;
148148
}
149149

150-
#elif defined(ZYAN_LINUX) || defined(ZYAN_FREEBSD) || defined(ZYAN_SOLARIS)
150+
#elif defined(ZYAN_LINUX) || defined(ZYAN_FREEBSD) || defined(ZYAN_SOLARIS) || defined(ZYAN_HAIKU)
151151

152152
struct timeval t1;
153153

0 commit comments

Comments
 (0)