1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/security/gvm-libs/files/patch-boreas_alivedetection.c
Jose Alonso Cardenas Marquez a22e5bb83a - New port: security/gvm-libs
This is the libraries module for the Greenbone Vulnerability Management
Solution.

It is used for the Greenbone Security Manager appliances and provides various
functionalities to support the integrated service daemons.

WWW: https://github.com/greenbone/gvm-libs
2021-01-06 08:42:12 +00:00

17 lines
460 B
C

--- boreas/alivedetection.c.orig 2020-12-30 23:49:07.498953000 -0500
+++ boreas/alivedetection.c 2020-12-30 23:50:37.570417000 -0500
@@ -39,7 +39,12 @@
#include <netinet/ip6.h>
#include <netinet/ip_icmp.h>
#include <netinet/tcp.h>
-#include <netpacket/packet.h> /* for sockaddr_ll */
+#ifdef AF_LINK
+# include <net/if_dl.h>
+#endif
+#ifdef AF_PACKET
+# include <netpacket/packet.h>
+#endif
#include <pcap.h>
#include <pthread.h>
#include <stdlib.h>