File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8912,7 +8912,7 @@ static void mg_set_non_blocking_mode(MG_SOCKET_TYPE fd) {
8912
8912
void mg_multicast_add(struct mg_connection *c, char *ip);
8913
8913
void mg_multicast_add(struct mg_connection *c, char *ip) {
8914
8914
#if MG_ENABLE_RL
8915
- #error UNSUPPORTED
8915
+ MG_ERROR(("unsupported"));
8916
8916
#elif MG_ENABLE_FREERTOS_TCP
8917
8917
// TODO(): prvAllowIPPacketIPv4()
8918
8918
#else
Original file line number Diff line number Diff line change @@ -285,6 +285,7 @@ extern "C" {
285
285
#define mode_t size_t
286
286
#include < alloca.h>
287
287
#include < time.h>
288
+ #define strdup (s ) ((char *) mg_strdup(mg_str(s)).buf)
288
289
#elif defined(__CCRH__)
289
290
#else
290
291
#include < sys/stat.h>
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ static void mg_set_non_blocking_mode(MG_SOCKET_TYPE fd) {
181
181
void mg_multicast_add (struct mg_connection * c , char * ip );
182
182
void mg_multicast_add (struct mg_connection * c , char * ip ) {
183
183
#if MG_ENABLE_RL
184
- #error UNSUPPORTED
184
+ MG_ERROR (( "unsupported" ));
185
185
#elif MG_ENABLE_FREERTOS_TCP
186
186
// TODO(): prvAllowIPPacketIPv4()
187
187
#else
You can’t perform that action at this time.
0 commit comments