remove warnings on OSX (workaround)
Этот коммит содержится в:
родитель
e4c4f57f05
Коммит
cb165df64e
@ -155,6 +155,16 @@ int gettimeofday(struct timeval *__p, void *__t);
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* get rid of deprecacy warnings on OSX when using OpenSSL
|
||||||
|
*/
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
#ifdef MAC_OS_X_VERSION_MIN_REQUIRED
|
||||||
|
#undef MAC_OS_X_VERSION_MIN_REQUIRED
|
||||||
|
#endif
|
||||||
|
#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6
|
||||||
|
#endif
|
||||||
|
|
||||||
/* forward declarations */
|
/* forward declarations */
|
||||||
struct ssh_common_struct;
|
struct ssh_common_struct;
|
||||||
struct ssh_kex_struct;
|
struct ssh_kex_struct;
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
#ifndef _PKI_CRYPTO_H
|
#ifndef _PKI_CRYPTO_H
|
||||||
#define _PKI_CRYPTO_H
|
#define _PKI_CRYPTO_H
|
||||||
|
|
||||||
|
#include "libssh/priv.h"
|
||||||
|
|
||||||
#include <openssl/pem.h>
|
#include <openssl/pem.h>
|
||||||
#include <openssl/dsa.h>
|
#include <openssl/dsa.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
@ -37,8 +39,6 @@
|
|||||||
#include <openssl/ecdsa.h>
|
#include <openssl/ecdsa.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "libssh/priv.h"
|
|
||||||
#include "libssh/libssh.h"
|
#include "libssh/libssh.h"
|
||||||
#include "libssh/buffer.h"
|
#include "libssh/buffer.h"
|
||||||
#include "libssh/session.h"
|
#include "libssh/session.h"
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user