fix for building client on windows with shell support

pull/531/head
JacobBarthelmeh 2023-06-28 14:32:15 -06:00
parent 9e83349745
commit b589883539
2 changed files with 13 additions and 1 deletions

View File

@ -53,7 +53,9 @@
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
#include <pwd.h>
#ifndef USE_WINDOWS_API
#include <pwd.h>
#endif
#endif /* WOLFSSH_SHELL */
#ifdef WOLFSSH_AGENT

View File

@ -50,6 +50,11 @@
#include <pthread.h>
#endif
#if defined(WOLFSSH_SHELL) && defined(USE_WINDOWS_API)
#pragma message ("echoserver with shell on windows is not supported, use wolfSSHd instead")
#undef WOLFSSH_SHELL
#endif
#ifdef WOLFSSL_NUCLEUS
/* use buffers for keys with server */
#define NO_FILESYSTEM
@ -70,11 +75,16 @@
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
#ifndef USE_WINDOWS_API
#include <pwd.h>
#endif
#include <signal.h>
#if defined(__QNX__) || defined(__QNXNTO__)
#include <errno.h>
#include <unix.h>
#elif defined(USE_WINDOWS_API)
#include <errno.h>
#else
#include <sys/errno.h>
#endif