Fix build

This commit is contained in:
Sergey Lyubka 2022-05-25 11:18:54 +01:00
parent 69082db381
commit 2bfc838614
4 changed files with 2 additions and 4 deletions

View File

@ -3926,7 +3926,6 @@ struct mg_connection *mg_sntp_connect(struct mg_mgr *mgr, const char *url,
#if MG_ENABLE_SOCKET
#if MG_ARCH == MG_ARCH_WIN32 && MG_ENABLE_WINSOCK
#define MG_SOCK_ERRNO WSAGetLastError()

View File

@ -436,7 +436,7 @@ extern int SockSet(SOCKET hSock, int Type, int Prop, void *pbuf, int size);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if MG_ENABLE_POLL
#if defined(MG_ENABLE_POLL) && MG_ENABLE_POLL
#include <poll.h>
#else
#include <sys/select.h>

View File

@ -22,7 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if MG_ENABLE_POLL
#if defined(MG_ENABLE_POLL) && MG_ENABLE_POLL
#include <poll.h>
#else
#include <sys/select.h>

View File

@ -1,4 +1,3 @@
#include "arch.h"
#include "dns.h"
#include "event.h"
#include "log.h"