diff --git a/examples/ZydisPerfTest.c b/examples/ZydisPerfTest.c index 5149100f..39ac0646 100644 --- a/examples/ZydisPerfTest.c +++ b/examples/ZydisPerfTest.c @@ -44,6 +44,8 @@ # include # include # include +#elif defined(ZYAN_NETBSD) +# include #else # error "Unsupported platform detected" #endif @@ -147,7 +149,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) || defined(ZYAN_HAIKU) +#elif defined(ZYAN_LINUX) || defined(ZYAN_FREEBSD) || defined(ZYAN_NETBSD) || defined(ZYAN_SOLARIS) || defined(ZYAN_HAIKU) struct timeval t1;