Skip to content

Commit

Permalink
#663: osx implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jun 13, 2015
1 parent af73248 commit e2758f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions psutil/_psutil_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ psutil_net_if_addrs(PyObject* self, PyObject* args)
if (py_netmask == NULL)
goto error;

#if defined(__linux) || defined(__FreeBSD__)
#if defined(__linux) || defined(__FreeBSD__) || defined(__APPLE__)
if (ifa->ifa_flags & IFF_BROADCAST) {
py_broadcast = psutil_convert_ipaddr(ifa->ifa_broadaddr, family);
Py_INCREF(Py_None);
Expand All @@ -206,7 +206,6 @@ psutil_net_if_addrs(PyObject* self, PyObject* args)
py_ptp = Py_None;
}
#else
// TODO
py_broadcast = psutil_convert_ipaddr(ifa->ifa_broadaddr, family);
Py_INCREF(Py_None);
py_ptp = Py_None;
Expand Down

0 comments on commit e2758f7

Please sign in to comment.