]>
Commit | Line | Data |
---|---|---|
8b2e3faf | 1 | --- libpcap-0.4a6.orig/inet.c |
2 | +++ libpcap-0.4a6/inet.c | |
3 | @@ -69,7 +69,7 @@ | |
4 | #endif | |
5 | ||
6 | /* Not all systems have IFF_LOOPBACK */ | |
7 | -#ifdef IFF_LOOPBACK | |
8 | +#if defined(IFF_LOOPBACK) || defined(__linux__) | |
9 | #define ISLOOPBACK(p) ((p)->ifr_flags & IFF_LOOPBACK) | |
10 | #else | |
11 | #define ISLOOPBACK(p) ((p)->ifr_name[0] == 'l' && (p)->ifr_name[1] == 'o' && \ |