Skip to content

Commit 899cedb

Browse files
brad0grooverdan
authored andcommitted
Fix building my_gethwaddr() on OpenBSD
1 parent 278fbe6 commit 899cedb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

mysys/my_gethwaddr.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,14 @@ static my_bool memcpy_and_test(uchar *to, uchar *from, uint len)
3333
return res;
3434
}
3535

36-
#if defined(__APPLE__) || defined(__FreeBSD__)
36+
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
37+
#ifdef __OpenBSD__
38+
#include <netinet/in.h>
39+
#include <net/if_arp.h>
40+
#include <netinet/if_ether.h>
41+
#else
3742
#include <net/ethernet.h>
43+
#endif
3844
#include <sys/sysctl.h>
3945
#include <net/route.h>
4046
#include <net/if.h>

0 commit comments

Comments
 (0)