Fix compatibility issue with FreeBSD (Alexandre Raynaud, Jason Harris, #39)

pull/67/head
David Schweikert 12 years ago
parent 5d6db6f08d
commit 121bea1d24

@ -2,6 +2,7 @@ UNRELEASED
* Fix sprint_tm buffer size crash (reported by Japheth Cleaver)
* Addded -D flag to print timestamps (Toke Høiland-Jørgensen)
* Fix fping6 build on OS X 10.8 (unknown contributor)
* Fix compatibility issue with FreeBSD (Alexandre Raynaud, Jason Harris, #39)
* Fping.spec: fix setuid permissions and provides fping6 (Marcus Vinicius Ferreira)
2012-09-04 David Schweikert <david@schweikert.ch>

@ -1579,7 +1579,12 @@ int send_ping( int s, HOST_ENTRY *h )
( struct sockaddr* )&h->saddr, sizeof( FPING_SOCKADDR ) );
if( n < 0 || n != ping_pkt_size )
{
if(
(n < 0 || n != ping_pkt_size)
#if defined( EHOSTDOWN )
&& errno != EHOSTDOWN
#endif
) {
if( verbose_flag || unreachable_flag )
{
printf( "%s", h->host );

Loading…
Cancel
Save