macaddr: Use the BSD code for Darwin as well

It simply compiles, no other testing has been done.
This commit is contained in:
Holger Hans Peter Freyther 2015-04-11 19:29:52 +02:00
parent 9a1a5a1c0a
commit 1885395551
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ int osmo_macaddr_parse(uint8_t *out, const char *in)
return 0;
}
#if defined(__FreeBSD__)
#if defined(__FreeBSD__) || defined(__APPLE__)
#include <sys/socket.h>
#include <sys/types.h>
#include <ifaddrs.h>