From f8deeef7e6589085644942a983e76eda9254d302 Mon Sep 17 00:00:00 2001 From: cronzon Date: Wed, 27 Jul 2016 21:15:56 +0000 Subject: [PATCH] Fixes compatibility issues when making with OSX Signed-off-by: cronzon --- embedded8266/web/execute_reflash.c | 5 +++++ embedded8266/web/pushtodev.c | 5 +++++ 2 files changed, 10 insertions(+) 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];