Skip to content

Commit

Permalink
Haiku: fix build for ZydisPerfTest.c (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
korli authored Aug 6, 2024
1 parent af792c4 commit bd73bc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dependencies/zycore
4 changes: 2 additions & 2 deletions examples/ZydisPerfTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# include <windows.h>
#elif defined(ZYAN_APPLE)
# include <mach/mach_time.h>
#elif defined(ZYAN_LINUX) || defined(ZYAN_SOLARIS)
#elif defined(ZYAN_LINUX) || defined(ZYAN_SOLARIS) || defined(ZYAN_HAIKU)
# include <sys/time.h>
# include <pthread.h>
#elif defined(ZYAN_FREEBSD)
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit bd73bc0

Please sign in to comment.