diff --git a/embedded8266/web/execute_reflash.c b/embedded8266/web/execute_reflash.c index e525aed..6105c86 100644 --- a/embedded8266/web/execute_reflash.c +++ b/embedded8266/web/execute_reflash.c @@ -14,6 +14,11 @@ #define BLOCK_SIZE 65536 #define SECTOR_SIZE 4096 #define PADDING 1024 + +#ifndef MSG_NOSIGNAL + #define MSG_NOSIGNAL 0x0 //Don't request NOSIGNAL on systems where this is not implemented. +#endif + int sockfd; struct sockaddr_in servaddr,cliaddr; diff --git a/embedded8266/web/pushtodev.c b/embedded8266/web/pushtodev.c index 56583a3..413c05e 100644 --- a/embedded8266/web/pushtodev.c +++ b/embedded8266/web/pushtodev.c @@ -12,6 +12,11 @@ #include #define sector_SIZE 4096 + +#ifndef MSG_NOSIGNAL + #define MSG_NOSIGNAL 0x0 //Don't request NOSIGNAL on systems where this is not implemented. +#endif + int sockfd; char recvline[10000];