[Libssh] libssh 3.0 and FreeBSD

Alexander Logvinov avl at logvinov.com
Tue Jun 9 13:23:27 CEST 2009


Hello Andreas!

On 09.06.2009 21:14 Andreas Schneider wrote:
>>  Thank you, it builds! But there are many warnings about
>> implicit declaration of function 'ntohl' and 'htons'. Here is a log:
>> http://pastebin.com/m6831df1
> 
> which file tells FreeBSD to include you for ntohl if you take a look at 'man 
> ntohl'?

# man ntohl
...

NAME
     htonl, htons, ntohl, ntohs -- convert values between host and
network byte order

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <arpa/inet.h>

     or

     #include <netinet/in.h>

     uint32_t
     htonl(uint32_t hostlong);

     uint16_t
     htons(uint16_t hostshort);

     uint32_t
     ntohl(uint32_t netlong);

     uint16_t
     ntohs(uint16_t netshort);

-- 
Best regards,
Alexander Logvinov




More information about the Libssh mailing list