Hi All,
I’m working on getting Mongoose to compile under MCUxpresso for iMXRT. I’m hung up on one compile issue with mongoose.c:
“mongoose-master/mongoose.c:2665:56: error: macro “poll” requires 3 arguments, but only 2 given
m->ifaces[i]->vtable->poll(m->ifaces[i], timeout_ms);”
int mg_mgr_poll(struct mg_mgr *m, int timeout_ms) {
[…]
for (i = 0; i < m->num_ifaces; i++) {
m->ifaces[i]->vtable->poll(m->ifaces[i], timeout_ms);
}
[…]
}
But if I look in mongoose.h for the vtable poll definition it only specifies 2 arguments, as called. Where/how is my build picking up a vtable definition with 3 arguments?!
struct mg_iface_vtable {
[…]
time_t (*poll)(struct mg_iface *iface, int timeout_ms);
}