Commit d8536b01 authored by KIU Shueng Chuan's avatar KIU Shueng Chuan

portable socket type should be SOCKET

parent a2239c2b
...@@ -4693,7 +4693,7 @@ struct mg_connection *mg_connect(const char *host, int port, int use_ssl, ...@@ -4693,7 +4693,7 @@ struct mg_connection *mg_connect(const char *host, int port, int use_ssl,
struct mg_connection *conn = NULL; struct mg_connection *conn = NULL;
struct sockaddr_in sin; struct sockaddr_in sin;
struct hostent *he; struct hostent *he;
int sock; SOCKET sock;
if (host == NULL) { if (host == NULL) {
snprintf(ebuf, ebuf_len, "%s", "NULL host"); snprintf(ebuf, ebuf_len, "%s", "NULL host");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment