Index: src/protocol.c --- src/protocol.c.orig +++ src/protocol.c @@ -31,6 +31,12 @@ #include #include #include +#elif defined(__OpenBSD__) +#include +#include +#include +#include +#include #else #include #endif @@ -553,7 +559,7 @@ int query_mndp_or_mac(char *address, unsigned char *ds } } else { /* Convert mac address string to ether_addr struct */ -#if defined(__APPLE__) +#if defined(__APPLE__) || defined(__OpenBSD__) struct ether_addr* dstmac_buf = ether_aton(address); memcpy(dstmac, dstmac_buf, sizeof(struct ether_addr)); #else