Fix build

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

No files matched your search

-1
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_ENABLE_SOCKET
#if MG_ARCH == MG_ARCH_WIN32 && MG_ENABLE_WINSOCK #if MG_ARCH == MG_ARCH_WIN32 && MG_ENABLE_WINSOCK
#define MG_SOCK_ERRNO WSAGetLastError() #define MG_SOCK_ERRNO WSAGetLastError()
+1 -1
View File
@@ -436,7 +436,7 @@ extern int SockSet(SOCKET hSock, int Type, int Prop, void *pbuf, int size);
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#if MG_ENABLE_POLL #if defined(MG_ENABLE_POLL) && MG_ENABLE_POLL
#include <poll.h> #include <poll.h>
#else #else
#include <sys/select.h> #include <sys/select.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#if MG_ENABLE_POLL #if defined(MG_ENABLE_POLL) && MG_ENABLE_POLL
#include <poll.h> #include <poll.h>
#else #else
#include <sys/select.h> #include <sys/select.h>
-1
View File
@@ -1,4 +1,3 @@
#include "arch.h"
#include "dns.h" #include "dns.h"
#include "event.h" #include "event.h"
#include "log.h" #include "log.h"