summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/modnetwork.h
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/modnetwork.h')
-rw-r--r--extmod/modnetwork.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/extmod/modnetwork.h b/extmod/modnetwork.h
index 3481cc6dcc..55ee4eb4d3 100644
--- a/extmod/modnetwork.h
+++ b/extmod/modnetwork.h
@@ -62,7 +62,8 @@ mp_obj_t mod_network_nic_ifconfig(struct netif *netif, size_t n_args, const mp_o
struct _mod_network_socket_obj_t;
typedef struct _mod_network_nic_type_t {
- mp_obj_type_t base;
+ // Ensure that this struct is big enough to hold any type size.
+ mp_obj_full_type_t base;
// API for non-socket operations
int (*gethostbyname)(mp_obj_t nic, const char *name, mp_uint_t len, uint8_t *ip_out);