diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-06-06 18:56:30 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-06-06 18:56:30 +0200 |
commit | 640e3830f295baae596cc34ec2fc79fc08807d0f (patch) | |
tree | bd41a63c93189aaadf29386b6b230ec60d30847f /src | |
parent | 3fa801a9295e1adbfadcecfd193f3a84d307e64a (diff) | |
download | libssh-640e3830f295baae596cc34ec2fc79fc08807d0f.tar.gz libssh-640e3830f295baae596cc34ec2fc79fc08807d0f.tar.xz libssh-640e3830f295baae596cc34ec2fc79fc08807d0f.zip |
build: Check for ntohll().
This function is available on AIX.
Diffstat (limited to 'src')
-rw-r--r-- | src/misc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -286,18 +286,20 @@ int ssh_is_ipaddr(const char *str) { #endif /* _WIN32 */ +#ifndef HAVE_NTOHLL uint64_t ntohll(uint64_t a) { #ifdef WORDS_BIGENDIAN return a; -#else +#else /* WORDS_BIGENDIAN */ uint32_t low = (uint32_t)(a & 0xffffffff); uint32_t high = (uint32_t)(a >> 32); low = ntohl(low); high = ntohl(high); return ((((uint64_t) low) << 32) | ( high)); -#endif +#endif /* WORDS_BIGENDIAN */ } +#endif /* HAVE_NTOHLL */ char *ssh_lowercase(const char* str) { char *new, *p; |