Fix compile bug

libssh/include/libssh/libssh.h:115: error: previous declaration of 'ssh_session' was here
tmate.h:83: error: redefinition of typedef 'ssh_channel'
libssh/include/libssh/libssh.h:110: error: previous declaration of 'ssh_channel' was here
make: *** [tmate-ssh-client.o] Error 1
This commit is contained in:
Nicolas Viennot 2013-06-17 17:34:34 -04:00
parent edea6cf141
commit ddf0a9dd55

View File

@ -3,6 +3,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <msgpack.h> #include <msgpack.h>
#include <libssh/libssh.h>
#include <event.h> #include <event.h>
#include "tmux.h" #include "tmux.h"
@ -79,9 +80,6 @@ extern void tmate_decoder_commit(struct tmate_decoder *decoder, size_t len);
#define TMATE_HOST_ECDSA_KEY "c7:a1:51:36:d2:bb:35:4b:0a:1a:c0:43:97:74:ea:42" #define TMATE_HOST_ECDSA_KEY "c7:a1:51:36:d2:bb:35:4b:0a:1a:c0:43:97:74:ea:42"
#endif #endif
typedef struct ssh_session_struct* ssh_session;
typedef struct ssh_channel_struct* ssh_channel;
enum tmate_ssh_client_state_types { enum tmate_ssh_client_state_types {
SSH_NONE, SSH_NONE,
SSH_INIT, SSH_INIT,