diff options
-rw-r--r-- | extra/wolfssl/user_settings.h.in | 1 | ||||
-rw-r--r-- | vio/viosocket.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/extra/wolfssl/user_settings.h.in b/extra/wolfssl/user_settings.h.in index f44143517fa..0e12dd33d19 100644 --- a/extra/wolfssl/user_settings.h.in +++ b/extra/wolfssl/user_settings.h.in @@ -13,6 +13,7 @@ #define SESSION_CERT #define KEEP_OUR_CERT #define WOLFSSL_STATIC_RSA +#define WOLFSSL_USER_IO #define WC_RSA_BLINDING #define HAVE_TLS_EXTENSIONS #define HAVE_AES_ECB diff --git a/vio/viosocket.c b/vio/viosocket.c index 6e6d56d8549..9ef703dee8d 100644 --- a/vio/viosocket.c +++ b/vio/viosocket.c @@ -148,6 +148,10 @@ int vio_socket_io_wait(Vio *vio, enum enum_vio_io_event event) #define VIO_DONTWAIT 0 #endif +#ifndef SOCKET_EAGAIN +#define SOCKET_EAGAIN SOCKET_EWOULDBLOCK +#endif + /* returns number of bytes read or -1 in case of an error */ |