Re: ping.c




    Martin> #if (_LINUX_C_LIB_VERSION_MAJOR == 5)
    Martin> typedef struct icmphdr struct_icmp;

Except that you should do a test for the existence of struct icmp,
rather than a test for a particular version of glibc.

As I mentioned earlier, the problem is not just a linux one.  OSF/1
does not have struct icmp, whereas solaris has it.

I have not checked other OSes yet.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]