diff options
author | Sebastien Estienne <sebastien.estienne@gmail.com> | 2005-10-19 20:31:51 +0000 |
---|---|---|
committer | Sebastien Estienne <sebastien.estienne@gmail.com> | 2005-10-19 20:31:51 +0000 |
commit | 5e109a26f9905a8585f6b79e180b545a8d079dc6 (patch) | |
tree | 9f22e5ddcd24e39eefb5faae28826d79ea1f6e99 /avahi-daemon/dbus-protocol.c | |
parent | c63e8024d33ad0313389dba4f1f22ca99c5eee71 (diff) |
* remove some --disable in boostrap.sh for osx
* added a missing include in dus-protocol.h
* remove getinterface in a-d-s replaced by if_indextoname
* avahi-discover-standalone is now working on osx
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@826 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-daemon/dbus-protocol.c')
-rw-r--r-- | avahi-daemon/dbus-protocol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/avahi-daemon/dbus-protocol.c b/avahi-daemon/dbus-protocol.c index 7611156..8994a25 100644 --- a/avahi-daemon/dbus-protocol.c +++ b/avahi-daemon/dbus-protocol.c @@ -25,6 +25,7 @@ #include <string.h> #include <sys/ioctl.h> +#include <netinet/in.h> #include <net/if.h> #include <errno.h> #include <unistd.h> @@ -1809,6 +1810,7 @@ static DBusHandlerResult msg_server_impl(DBusConnection *c, DBusMessage *m, void } memset(&ifr, 0, sizeof(ifr)); + ifr.ifr_ifindex = idx; if (ioctl(fd, SIOCGIFNAME, &ifr) < 0) { |