security/masscan: fix build on !x86

Only include x86 header on x86

PR:		250899
Approved by:	taguchi.ch@gmail.com (maintainer timeout)
This commit is contained in:
Mikael Urankar 2020-11-21 13:37:33 +00:00
parent d28e5a0a17
commit 9eb7c77ae2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=555980

View File

@ -4,7 +4,7 @@
#include "pixie-timer.h"
#if defined(_MSC_VER)
#include <intrin.h>
+#elif defined(__llvm__)
+#elif defined(__llvm__) && (defined(__amd64__) || defined(__i386__))
+#include <x86intrin.h>
#elif defined(__GNUC__)
static __inline__ unsigned long long __rdtsc(void)