From abd9856c6a5bc9a29dd9296125628502b810208e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 17 Sep 2011 11:53:46 +0200 Subject: priv: Move defines to the top. --- include/libssh/priv.h | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'include/libssh/priv.h') diff --git a/include/libssh/priv.h b/include/libssh/priv.h index a757b389..5c34b17e 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -94,6 +94,8 @@ # endif /* _MSC_VER */ +int gettimeofday(struct timeval *__p, void *__t); + #else /* _WIN32 */ #include @@ -112,11 +114,16 @@ #define CLIENTBANNER2 "SSH-2.0-libssh-" SSH_STRINGIFY(LIBSSH_VERSION) #define KBDINT_MAX_PROMPT 256 /* more than openssh's :) */ +#ifndef __FUNCTION__ +#if defined(__SUNPRO_C) +#define __FUNCTION__ __func__ +#endif +#endif + #ifdef __cplusplus extern "C" { #endif - #ifdef HAVE_SYS_TIME_H #include #endif @@ -127,9 +134,6 @@ struct error_struct { char error_buffer[ERROR_BUFFERLEN]; }; -/* TODO: remove that include */ -#include "libssh/wrapper.h" - struct ssh_message_struct; struct ssh_common_struct; struct ssh_kex_struct; @@ -220,17 +224,6 @@ int match_hostname(const char *host, const char *pattern, unsigned int len); int message_handle(ssh_session session, void *user, uint8_t type, ssh_buffer packet); -/* misc.c */ -#ifdef _WIN32 -int gettimeofday(struct timeval *__p, void *__t); -#endif /* _WIN32 */ - -#ifndef __FUNCTION__ -#if defined(__SUNPRO_C) -#define __FUNCTION__ __func__ -#endif -#endif - #define _enter_function(sess) \ do {\ if((sess)->common.log_verbosity >= SSH_LOG_FUNCTIONS){ \ -- cgit v1.2.3