mirror of
https://git.freebsd.org/ports.git
synced 2025-05-20 02:53:10 -04:00
- Upstream has move to GitLab - Use meson instead of gmake - Optionally support GeoIP1 + GeoIP2 via net/libmaxminddb PR: 258363 (based on) Reported by: freebsd@ohreally.nl
22 lines
481 B
C
22 lines
481 B
C
--- netsplit.c.orig 2021-06-06 18:56:02 UTC
|
|
+++ netsplit.c
|
|
@@ -32,9 +32,19 @@
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
#include <stdint.h>
|
|
+#include <sys/socket.h>
|
|
|
|
#include "ipv6.h"
|
|
#include "ipcalc.h"
|
|
+
|
|
+#if defined(__FreeBSD__) || defined(__darwin__) || defined(__APPLE__)
|
|
+#ifndef s6_addr16
|
|
+#define s6_addr16 __u6_addr.__u6_addr16
|
|
+#endif
|
|
+#ifndef s6_addr32
|
|
+#define s6_addr32 __u6_addr.__u6_addr32
|
|
+#endif
|
|
+#endif
|
|
|
|
static const char *numtoquad(uint32_t num)
|
|
{
|