JTSDK build

* changes required for building in mingw JTSDK environment
This commit is contained in:
dave-w1hkj 2023-11-12 08:08:23 -06:00
parent 2e5db4f16a
commit fdb9fc8827
2 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,7 @@
# include <sys/select.h>
#else
# include "compat.h"
#define socklen_t int
# include <ws2tcpip.h>
#endif
#define DEFAULT_BUFFER_SIZE 1024

View file

@ -25,8 +25,10 @@
#undef _WINSOCKAPI_
# include <stdio.h>
# include <winsock2.h>
//# pragma lib(WS2_32.lib)
# include <ws2tcpip.h>
//typedef int socklen_t;
//# pragma lib(WS2_32.lib)
// Updates to MXE require conditional test before assignment to
// prevent duplicate defines.
@ -39,8 +41,6 @@
#undef ETIMEDOUT
#define ETIMEDOUT WSAETIMEDOUT
typedef int socklen_t;
#include "compat.h"
#else