mirror of https://github.com/wolfSSL/wolfssh.git
fix undefined FIONREAD error on Cygwin
parent
ef2a6e15c6
commit
f88dc8c98b
|
@ -607,10 +607,14 @@ extern "C" {
|
|||
#elif defined(USE_WINDOWS_API)
|
||||
#define WIOCTL ioctlsocket
|
||||
#else
|
||||
#if defined(__CYGWIN__) && !defined(FIONREAD)
|
||||
/* Cygwin defines FIONREAD in socket.h instead of ioctl.h */
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
#include <sys/ioctl.h>
|
||||
#define WIOCTL ioctl
|
||||
#endif
|
||||
#endif
|
||||
#endif /* WIOCTL */
|
||||
|
||||
|
||||
#if defined(USE_WINDOWS_API)
|
||||
|
|
Loading…
Reference in New Issue