diff --git a/net-mgmt/mac-telnet/files/patch-configure.ac b/net-mgmt/mac-telnet/files/patch-configure.ac new file mode 100644 index 000000000000..5a37adf61b4f --- /dev/null +++ b/net-mgmt/mac-telnet/files/patch-configure.ac @@ -0,0 +1,13 @@ +--- configure.ac.orig 2024-06-19 14:50:22 UTC ++++ configure.ac +@@ -79,6 +79,10 @@ case "$host_os" in + AC_MSG_ERROR([pthreads library not found]) + fi + ;; ++ freebsd*) ++ AC_CHECK_LIB([intl], [libintl_gettext], [HAVE_LIBINTL=yes], [HAVE_LIBINTL=no]) ++ AC_CHECK_LIB([pthread], [pthread_create]) ++ ;; + *) + ;; + esac diff --git a/net-mgmt/mac-telnet/files/patch-src_mndp.c b/net-mgmt/mac-telnet/files/patch-src_mndp.c new file mode 100644 index 000000000000..5e5f11e0bde4 --- /dev/null +++ b/net-mgmt/mac-telnet/files/patch-src_mndp.c @@ -0,0 +1,15 @@ +--- src/mndp.c.orig 2024-06-19 14:43:14 UTC ++++ src/mndp.c +@@ -170,9 +170,12 @@ int mndp(int timeout, int batch_mode) { + return 0; + } + ++#define ether_addr_octet octet ++ + char *ether_ntoa_z(const struct ether_addr *addr) { + static char buf[18]; /* 12 digits + 5 colons + null terminator */ + sprintf(buf, "%02x:%02x:%02x:%02x:%02x:%02x", addr->ether_addr_octet[0], addr->ether_addr_octet[1], + addr->ether_addr_octet[2], addr->ether_addr_octet[3], addr->ether_addr_octet[4], addr->ether_addr_octet[5]); + return buf; + } ++#undef ether_addr_octet