Added fixes to avoid compile errors and warnings when building under
Windows using MinGW
OUTPUT_VARIABLE GIT_HOST
OUTPUT_STRIP_TRAILING_WHITESPACE
)
+ string(REGEX REPLACE "([^\\])[\\]([^\\])" "\\1\\\\\\\\\\2" GIT_USER ${GIT_USER})
set(LWS_BUILD_HASH ${GIT_USER}@${GIT_HOST}-${GIT_HASH})
message("Git commit hash: ${LWS_BUILD_HASH}")
endif()
{
DWORD _amount;
- (void *)wsi;
if (!ReadFile((HANDLE)fd, buf, (DWORD)len, &_amount, NULL)) {
*amount = 0;
char path[256], sym[256];
unsigned char *p = (unsigned char *)sym + 32 + LWS_PRE, *start = p;
unsigned char *end = p + sizeof(sym) - 32 - LWS_PRE;
- size_t len;
int n, spin = 0;
snprintf(path, sizeof(path) - 1, "%s/%s", origin, uri);
#define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
#endif
+#include <winsock2.h>
+
#ifndef _TIMEZONE_DEFINED
struct timezone
{