summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--extmod/modlwip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/modlwip.c b/extmod/modlwip.c
index afd6067292..afe5ca9e73 100644
--- a/extmod/modlwip.c
+++ b/extmod/modlwip.c
@@ -183,11 +183,11 @@ static const int error_lookup_table[] = {
typedef struct _lwip_socket_obj_t {
mp_obj_base_t base;
- union {
+ volatile union {
struct tcp_pcb *tcp;
struct udp_pcb *udp;
} pcb;
- union {
+ volatile union {
struct pbuf *pbuf;
struct tcp_pcb *connection;
} incoming;