diff options
author | Martin Mares <mj@ucw.cz> | 1999-04-07 16:25:56 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-04-07 16:25:56 +0200 |
commit | 49ed70b48e3b66c4dd71315e842733d69204698e (patch) | |
tree | 82bec9ce12e3249f1e74c775b02c2e82d955de92 | |
parent | 23b1539bf90bfb6b35d9a2be0a2b6b1e311c1460 (diff) | |
download | bird-49ed70b48e3b66c4dd71315e842733d69204698e.tar bird-49ed70b48e3b66c4dd71315e842733d69204698e.zip |
Portability fixes.
-rw-r--r-- | sysdep/unix/krt-iface.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdep/unix/krt-iface.c b/sysdep/unix/krt-iface.c index 083af29..bfeda06 100644 --- a/sysdep/unix/krt-iface.c +++ b/sysdep/unix/krt-iface.c @@ -7,6 +7,7 @@ */ #include <string.h> +#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <net/if.h> @@ -39,8 +40,8 @@ scan_ifs(struct ifreq *r, int cnt) for (cnt /= sizeof(struct ifreq); cnt; cnt--, r++) { bzero(&i, sizeof(i)); - DBG("%s\n", r->ifr_ifrn.ifrn_name); - strncpy(i.name, r->ifr_ifrn.ifrn_name, sizeof(i.name) - 1); + DBG("%s\n", r->ifr_name); + strncpy(i.name, r->ifr_name, sizeof(i.name) - 1); get_sockaddr((struct sockaddr_in *) &r->ifr_addr, &i.ip, NULL); if (ipa_nonzero(i.ip)) { |