BUG 96: Guard ntohll() and htonll prototypes correctly.

This commit is contained in:
Andreas Schneider
2012-12-03 13:31:28 +01:00
parent da8d44ccba
commit 3896aa43ff
3 changed files with 10 additions and 1 deletions

View File

@@ -34,9 +34,14 @@ int ssh_analyze_banner(ssh_session session, int server, int *ssh1, int *ssh2);
int ssh_is_ipaddr_v4(const char *str);
int ssh_is_ipaddr(const char *str);
#ifndef HAVE_NTOHLL
/* macro for byte ordering */
uint64_t ntohll(uint64_t);
#define htonll(x) ntohll(x)
#endif
#ifndef HAVE_HTONLL
#define htonll(x) ntohll((x))
#endif
/* list processing */