aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/masscan/files/patch-src_out-tcp-services.c10
-rw-r--r--security/masscan/files/patch-src_smack1.c3
2 files changed, 12 insertions, 1 deletions
diff --git a/security/masscan/files/patch-src_out-tcp-services.c b/security/masscan/files/patch-src_out-tcp-services.c
new file mode 100644
index 000000000000..2e3926af3812
--- /dev/null
+++ b/security/masscan/files/patch-src_out-tcp-services.c
@@ -0,0 +1,10 @@
+--- src/out-tcp-services.c.orig 2022-08-02 04:53:49 UTC
++++ src/out-tcp-services.c
+@@ -1,6 +1,7 @@
+ #include "out-tcp-services.h"
+ #include <string.h>
+ #include <stdlib.h>
++#include <arpa/inet.h>
+
+ #ifndef WIN32
+ #include <netdb.h>
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;