summaryrefslogtreecommitdiffstats
path: root/kftpgrabber/src/misc/libs/ssh/priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'kftpgrabber/src/misc/libs/ssh/priv.h')
-rw-r--r--kftpgrabber/src/misc/libs/ssh/priv.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/kftpgrabber/src/misc/libs/ssh/priv.h b/kftpgrabber/src/misc/libs/ssh/priv.h
index 2c93081..95e43bc 100644
--- a/kftpgrabber/src/misc/libs/ssh/priv.h
+++ b/kftpgrabber/src/misc/libs/ssh/priv.h
@@ -25,6 +25,11 @@ MA 02110-1301, USA. */
#ifndef _LIBSSH_PRIV_H
#define _LIBSSH_PRIV_H
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "libssh.h"
/* Debugging constants */
@@ -43,11 +48,10 @@ MA 02110-1301, USA. */
#define TYPE_RSA 2
#define TYPE_RSA1 3
-/* profiling constants. Don't touch them unless you know what you do */
+/* profiling constants. Don't touch them unless you know what you do */
#define OPENSSL_CRYPTO
#define OPENSSL_BIGNUMS
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -88,11 +92,18 @@ typedef BN_CTX* bignum_CTX;
#define bignum_num_bits(num) BN_num_bits(num)
#define bignum_is_bit_set(num,bit) BN_is_bit_set(num,bit)
#define bignum_bn2bin(num,ptr) BN_bn2bin(num,ptr)
-
#endif /* OPENSSL_BIGNUMS */
-#ifdef HAVE_SYS_TIME_H
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+#if HAVE_SYS_TIME_H
#include <sys/time.h>
-#endif
+#else
+#include <time.h>
+#endif // HAVE_SYS_TIME_H
+#endif // TIME_WITH_SYS_TIME
/* wrapper.c */
MD5CTX *md5_init(void);