Commit eb8d4519 authored by Benoit Steiner's avatar Benoit Steiner

Fixed compilation pb under solaris 2.6

parent eed018b6
...@@ -83,7 +83,7 @@ int BuildInetAddr( struct sockaddr_in *p_sa_in, char *psz_in_addr, int i_port ) ...@@ -83,7 +83,7 @@ int BuildInetAddr( struct sockaddr_in *p_sa_in, char *psz_in_addr, int i_port )
} }
/* Try to convert address directly from in_addr - this will work if /* Try to convert address directly from in_addr - this will work if
* psz_in_addr is dotted decimal. */ * psz_in_addr is dotted decimal. */
#if defined HAVE_ARPA_INET_H && !defined SYS_SOLARIS #if defined HAVE_ARPA_INET_H && !defined SYS_SOLARIS2_6
else if( !inet_aton( psz_in_addr, &p_sa_in->sin_addr) ) else if( !inet_aton( psz_in_addr, &p_sa_in->sin_addr) )
#else #else
else if( (p_sa_in->sin_addr.s_addr = inet_addr( psz_in_addr )) == -1 ) else if( (p_sa_in->sin_addr.s_addr = inet_addr( psz_in_addr )) == -1 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment