diff -Naur busybox-1.13.3/libbb/xconnect.c busybox-1.13.3.mod/libbb/xconnect.c --- busybox-1.13.3/libbb/xconnect.c 2009-02-26 12:47:08.000000000 +0100 +++ busybox-1.13.3.mod/libbb/xconnect.c 2009-05-14 19:39:35.000000000 +0200 @@ -23,10 +23,14 @@ int r; struct ifreq ifr; strncpy(ifr.ifr_name, iface, IFNAMSIZ); +#ifdef __linux__ /* Actually, ifr_name is at offset 0, and in practice * just giving char[IFNAMSIZ] instead of struct ifreq works too. * But just in case it's not true on some obscure arch... */ r = setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, &ifr, sizeof(ifr)); +#else + r = -1; +#endif if (r) bb_perror_msg("can't bind to interface %s", iface); return r;