1
0
mirror of https://frontier.innolan.net/rainlance/amiga-fping.git synced 2025-11-20 16:46:33 +00:00

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

This commit is contained in:
David Schweikert
2013-05-21 22:02:39 +02:00
parent 5d6db6f08d
commit 121bea1d24
2 changed files with 7 additions and 1 deletions

View File

@ -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>

View File

@ -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 );