mirror of https://github.com/wolfSSL/wolfssh.git
Fix compile errors when WOLFSSH_TERM is undefined
parent
79bc747b46
commit
7ff76751f6
|
@ -190,6 +190,7 @@ typedef struct thread_args {
|
|||
#endif
|
||||
|
||||
|
||||
#ifdef WOLFSSH_TERM
|
||||
static int sendCurrentWindowSize(thread_args* args)
|
||||
{
|
||||
int ret;
|
||||
|
@ -221,6 +222,7 @@ static int sendCurrentWindowSize(thread_args* args)
|
|||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef _MSC_VER
|
||||
|
@ -260,7 +262,9 @@ static THREAD_RET windowMonitor(void* in)
|
|||
if (args->quit) {
|
||||
break;
|
||||
}
|
||||
#ifdef WOLFSSH_TERM
|
||||
ret = sendCurrentWindowSize(args);
|
||||
#endif
|
||||
(void)ret;
|
||||
} while (1);
|
||||
|
||||
|
@ -877,6 +881,7 @@ THREAD_RETURN WOLFSSH_THREAD client_test(void* args)
|
|||
sem_init(&windowSem, 0, 0);
|
||||
#endif
|
||||
|
||||
#ifdef WOLFSSH_TERM
|
||||
if (cmd) {
|
||||
int err;
|
||||
|
||||
|
@ -887,6 +892,7 @@ THREAD_RETURN WOLFSSH_THREAD client_test(void* args)
|
|||
fprintf(stderr, "Issue sending exec initial terminal size\n\r");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
signal(SIGWINCH, WindowChangeSignal);
|
||||
pthread_create(&thread[0], NULL, windowMonitor, (void*)&arg);
|
||||
|
|
|
@ -1315,6 +1315,7 @@ void* wolfSSH_GetPublicKeyCheckCtx(WOLFSSH* ssh)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSH_TERM
|
||||
|
||||
/* Used to resize terminal window with shell connections
|
||||
* returns WS_SUCCESS on success */
|
||||
|
@ -1350,6 +1351,8 @@ void wolfSSH_SetTerminalResizeCtx(WOLFSSH* ssh, void* usrCtx)
|
|||
ssh->termCtx = usrCtx;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* Used to set the channel request type sent in wolfSSH connect. The default
|
||||
* type set is shell if this function is not called.
|
||||
|
|
Loading…
Reference in New Issue