aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-11 19:29:52 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-11 19:29:52 +0200
commit1885395551fb9a34145e9e242754ba3b2a9aa09e (patch)
tree34df0b947fa64133818e3e1c29f31a87d14b900f /src
parent9a1a5a1c0ad0e42ad2cb897e7248638634aaef5a (diff)
macaddr: Use the BSD code for Darwin as well
It simply compiles, no other testing has been done.
Diffstat (limited to 'src')
-rw-r--r--src/macaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/macaddr.c b/src/macaddr.c
index 59c481f7..a6e1304a 100644
--- a/src/macaddr.c
+++ b/src/macaddr.c
@@ -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>