Only in bing-1.0.5: bing.0 diff -ur bing-1.0.5/bing.c bing-1.0.5.patched/bing.c --- bing-1.0.5/bing.c Fri Jan 19 19:28:53 2001 +++ bing-1.0.5.patched/bing.c Sat Jan 20 14:51:23 2001 @@ -671,7 +671,7 @@ pr_retip((struct ip *)ICMP_TO_DATA(icp)); break; case ICMP_PARAMPROB: -#ifdef linux +#if defined(linux) && __GNU_LIBRARY__ == 1 (void)printf("Parameter problem: pointer = 0x%02x\n", icp->un.gateway); #else Only in bing-1.0.5: bing.ps Only in bing-1.0.5.patched: foo.h diff -ur bing-1.0.5/sysdep.h bing-1.0.5.patched/sysdep.h --- bing-1.0.5/sysdep.h Tue Jul 18 00:36:44 1995 +++ bing-1.0.5.patched/sysdep.h Sat Jan 20 14:43:31 2001 @@ -47,14 +47,18 @@ #define _SYSDEP_H_ #ifdef linux +#if __GNU_LIBRARY__ == 1 #define icmp icmphdr +#endif #define ip iphdr +#if __GNU_LIBRARY__ == 1 #define icmp_type type #define icmp_code code #define icmp_cksum checksum #define icmp_id un.echo.id #define icmp_seq un.echo.sequence #define icmp_gwaddr un.gateway +#endif #define ip_hl ihl #define ip_v version #define ip_tos tos @@ -66,11 +70,14 @@ #define ip_sum check #define ip_src saddr #define ip_dst daddr +#if __GNU_LIBRARY__ == 1 #define MAX_IPOPTLEN 4096 #define ICMP_MINLEN 16 +#endif #define IPOPT_MINOFF 4 +#if __GNU_LIBRARY__ == 1 #define IPOPT_EOL IPOPT_END #define IPOPT_NOP IPOPT_NOOP @@ -94,6 +101,7 @@ #define ICMP_TSTAMPREPLY ICMP_TIMESTAMPREPLY #define ICMP_IREQ ICMP_INFO_REQUEST #define ICMP_IREQREPLY ICMP_INFO_REPLY +#endif #define ICMP_TO_DATA(icp) ((u_char *)(icp + 1)) #endif /* linux */