[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: libssh-0.6.4 - OSX Yosemite compile error on redefinitions.


Sorry, Hotmail formatting not the Best.<BR>Created bug report <a href="https://red.libssh.org/issues/182";>https://red.libssh.org/issues/182</a><BR>

&nbsp;<BR>libssh-0.6.4 - OSX Yosemite compile error on redefinitions:<BR>

<br/>include/libssh/misc.h 

<br/>

<br/>#define htonll(x) ntohll((x))

<br/>

<br/>Quick Fix: 

<br/>#ifdefined(ntohll) 

<br/>#define HAVE_NTOHLL 

<br/>#endif

<br/>#if !defined(HAVE_HTONLL)

<br/>#define htonll(x) ntohll((x)) 

<br/>#endif


Most likely want to fix this in such a way that it does HAVE_NTOHLL and HAVE_HTONLL defined in config.h so it checks if this is already defined or not automatically. This was a quick n’ dirty solution that let me continue building. <BR> 		 	   		  

References:
Problem with server key verificationMichal Vaško <mvasko@xxxxxxxxx>
libssh-0.6.4 - OSX Yosemite compile error on redefinitions.Michael Griffin <mrmisticismo@xxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org