1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

fix mingw64 builds

This commit is contained in:
martell 2014-01-22 18:25:53 +00:00
parent eca0e4913d
commit 010a7e5123
3 changed files with 11 additions and 8 deletions

View file

@ -43,12 +43,12 @@ extern "C" {
#define strcasecmp stricmp
#define getdtablesize() 30000
#ifndef __SSIZE_T
#define __SSIZE_T
#ifndef _SSIZE_T_DEFINED
#define _SSIZE_T_DEFINED
typedef SSIZE_T ssize_t;
#endif // __SSIZE_T
#endif // _SSIZE_T_DEFINED
#define LWS_VISIBLE
@ -1119,4 +1119,4 @@ LWS_VISIBLE LWS_EXTERN struct libwebsocket_extension *libwebsocket_get_internal_
}
#endif
#endif
#endif

View file

@ -15,14 +15,16 @@
#else
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
#endif
#ifndef _TIMEZONE_DEFINED
struct timezone
{
int tz_minuteswest; /* minutes W of Greenwich */
int tz_dsttime; /* type of dst correction */
};
#endif
int gettimeofday(struct timeval *tv, struct timezone *tz);
#endif
#endif

View file

@ -51,8 +51,9 @@ typedef struct pollfd {
typedef INT (WSAAPI *PFNWSAPOLL)(LPWSAPOLLFD fdarray, ULONG nfds, INT timeout);
extern PFNWSAPOLL poll;
#ifndef __MINGW32__
extern INT WSAAPI emulated_poll(LPWSAPOLLFD fdarray, ULONG nfds, INT timeout);
#endif
/* override configure because we are not using Makefiles */
#define LWS_NO_FORK