aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2022-05-14 17:14:14 +0000
committerKurt Jaeger <pi@FreeBSD.org>2022-05-14 17:14:14 +0000
commit9f338283eff141a14454541d5f2ca29609798d15 (patch)
tree9d867683d8c7c84ffc4851861ef2101cb81125dd
parente2c8ca5df4d2b07fb124f9b7dfa9d9f62f120a5d (diff)
downloadports-9f338283eff141a14454541d5f2ca29609798d15.tar.gz
ports-9f338283eff141a14454541d5f2ca29609798d15.zip
net-mgmt/p0f: Fix build on 13.1 and current
PR: 263972
-rw-r--r--net-mgmt/p0f/files/patch-process.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/net-mgmt/p0f/files/patch-process.c b/net-mgmt/p0f/files/patch-process.c
index fea6321a09b9..45e2e41e749b 100644
--- a/net-mgmt/p0f/files/patch-process.c
+++ b/net-mgmt/p0f/files/patch-process.c
@@ -1,6 +1,14 @@
---- process.c.orig 2012-01-16 22:43:57.000000000 -0500
-+++ process.c 2012-03-18 16:01:24.966689978 -0400
-@@ -22,6 +22,9 @@
+--- process.c.orig 2016-04-16 01:18:17 UTC
++++ process.c
+@@ -8,6 +8,7 @@
+
+ */
+
++#include <stddef.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+@@ -22,6 +23,9 @@
#include <arpa/inet.h>
#include <sys/time.h>
#include <sys/stat.h>
@@ -10,7 +18,7 @@
#include "types.h"
#include "config.h"
-@@ -106,7 +109,7 @@
+@@ -106,7 +110,7 @@ static void find_offset(const u8* data, s32 total_len)
case DLT_LINUX_SLL: link_off = 16; return;
#endif /* DLT_LINUX_SLL */