aboutsummaryrefslogtreecommitdiff
path: root/security/masscan/files/patch-src_smack1.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/masscan/files/patch-src_smack1.c')
-rw-r--r--security/masscan/files/patch-src_smack1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/masscan/files/patch-src_smack1.c b/security/masscan/files/patch-src_smack1.c
index 909d256435cf..e88a20706b8b 100644
--- a/security/masscan/files/patch-src_smack1.c
+++ b/security/masscan/files/patch-src_smack1.c
@@ -6,8 +6,9 @@
#include <machine/cpufunc.h>
-#define __rdtsc rdtsc
-#if (__ARM_ARCH >= 6) // V6 is the earliest arch that has a standard cyclecount
+-unsigned long long rdtsc(void)
+#if (__ARM_ARCH >= 6 && __ARM_ARCH <= 7) // V6 is the earliest arch that has a standard cyclecount
- unsigned long long rdtsc(void)
++unsigned long long __rdtsc(void)
{
uint32_t pmccntr;
uint32_t pmuseren;