diff options
| author | Tim Wang <[email protected]> | 2026-09-23 15:54:08 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2026-10-03 12:59:43 +0800 |
| commit | c3e94f7b5fd533763a8e577fea0dfbc982eb20e5 (patch) | |
| tree | 54444bcd88559fab9051202ceb01c4ee43af43cd | |
| parent | 8bdb76a12cdc1903b802e94cd303a22f7bd58603 (diff) | |
[lwip] fix sio_write signature conflict
| -rw-r--r-- | components/net/lwip/port/sys_arch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/net/lwip/port/sys_arch.c b/components/net/lwip/port/sys_arch.c index 2c0eaaeaf2..ebab4c87ed 100644 --- a/components/net/lwip/port/sys_arch.c +++ b/components/net/lwip/port/sys_arch.c @@ -600,7 +600,11 @@ u32_t sio_read(sio_fd_t fd, u8_t *buf, u32_t size) return len; } +#if RT_USING_LWIP_VER_NUM >= 0x20200 +u32_t sio_write(sio_fd_t fd, const u8_t *buf, u32_t size) +#else u32_t sio_write(sio_fd_t fd, u8_t *buf, u32_t size) +#endif { RT_ASSERT(fd != RT_NULL); return rt_device_write((rt_device_t)fd, 0, buf, size); |
