mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Fix compile bug
In file included from tmate-slave.c:18: tmate.h:101: error: redefinition of typedef ‘ssh_session’ libssh/include/libssh/libssh.h:115: note: previous declaration of ‘ssh_session’ was here tmate.h:102: error: redefinition of typedef ‘ssh_channel’ libssh/include/libssh/libssh.h:110: note: previous declaration of ‘ssh_channel’ was here make: *** [tmate-slave.o] Error 1 Signed-off-by: Carl X. Su <bcbcarl@gmail.com>
This commit is contained in:
parent
fcdda2de75
commit
1b2762cf4e
4
tmate.h
4
tmate.h
@ -3,6 +3,7 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <msgpack.h>
|
||||
#include <libssh/libssh.h>
|
||||
#include <event.h>
|
||||
|
||||
#include "tmux.h"
|
||||
@ -98,9 +99,6 @@ extern void tmate_replayer_init(struct tmate_replayer *replayer,
|
||||
|
||||
/* tmate-ssh-client.c */
|
||||
|
||||
typedef struct ssh_session_struct* ssh_session;
|
||||
typedef struct ssh_channel_struct* ssh_channel;
|
||||
|
||||
#define TMATE_ROLE_SERVER 1
|
||||
#define TMATE_ROLE_CLIENT 2
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user