Mac OX S 10.7 compile fixes.
Mac OX S 10.7 compile fixes.

I've attached a patch that's required to be able to compile liboping on
MacOS 10.7 (Lion).  The issue is that the IPv6 API's are changing from
RFC 2292 to 3542, and Apple's headers require you to state which API you
want to use by defining a constant.  I've changed it to use either based
on the presence of constants, but to prefer 3542 on MacOS.

One problem I see with this is that if you have both multicast and
unicast TTL's set, then this won't report both of them, but I'm not sure
if that's even valid and it would require more significant rework.
Also, I noticed you have fixed the IP_RECVTOS issue in head.  That patch
is also required to be able to compile on Solaris and MacOS.

Signed-off-by: Florian Forster <6e1cc60e25630284701a7bea25813c453e76ad9b@verplant.org>

iseki-masaya/liboping,iseki-masaya/liboping,iseki-masaya/liboping,barak/liboping,octo/liboping,octo/liboping,octo/liboping,barak/liboping,octo/liboping,barak/liboping,iseki-masaya/liboping