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