ports/net/mac-telnet/patches/patch-src_macping_c

19 lines
443 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: src/macping.c
--- src/macping.c.orig
+++ src/macping.c
@@ -28,6 +28,14 @@
#include <netinet/in.h>
#define ETH_FRAME_LEN ETHER_MAX_LEN
#define ETH_ALEN ETHER_ADDR_LEN
+#elif defined(__OpenBSD__)
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <net/if.h>
+#include <netinet/if_ether.h>
+#include <netinet/in.h>
+#define ETH_FRAME_LEN ETHER_MAX_LEN
+#define ETH_ALEN ETHER_ADDR_LEN
#else
#include <netinet/ether.h>
#endif