Skip to content
Permalink
Browse files
Fix building my_gethwaddr() on OpenBSD
  • Loading branch information
brad0 authored and grooverdan committed Oct 27, 2022
1 parent 278fbe6 commit 899cedb
Showing 1 changed file with 7 additions and 1 deletion.
@@ -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>

0 comments on commit 899cedb

Please sign in to comment.