diff options
author | Brad Smith <brad@comstyle.com> | 2022-10-26 19:52:17 -0400 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2022-10-27 11:30:45 +1100 |
commit | 899cedb33c8e92a0067f2d74015300454c6235ae (patch) | |
tree | 24840902f7aa09870b63dd033654f0c34ee1c24c | |
parent | 278fbe61d847337712c0f802cc8e0db85bf58bd7 (diff) | |
download | mariadb-git-899cedb33c8e92a0067f2d74015300454c6235ae.tar.gz |
Fix building my_gethwaddr() on OpenBSD
-rw-r--r-- | mysys/my_gethwaddr.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mysys/my_gethwaddr.c b/mysys/my_gethwaddr.c index 70e1d549e15..5bb0ed75fb3 100644 --- a/mysys/my_gethwaddr.c +++ b/mysys/my_gethwaddr.c @@ -33,8 +33,14 @@ static my_bool memcpy_and_test(uchar *to, uchar *from, uint len) return res; } -#if defined(__APPLE__) || defined(__FreeBSD__) +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) +#ifdef __OpenBSD__ +#include <netinet/in.h> +#include <net/if_arp.h> +#include <netinet/if_ether.h> +#else #include <net/ethernet.h> +#endif #include <sys/sysctl.h> #include <net/route.h> #include <net/if.h> |