Fix ssize_t related warnings on 32-bit Windows builds

This commit is contained in:
Alexander Babikov
2024-07-15 14:03:23 +05:00
parent 9f4886e031
commit 1d322fe99d

View File

@@ -171,7 +171,11 @@ net_slirp_notify(void *opaque)
(void) opaque;
}
#if SLIRP_CHECK_VERSION(4, 8, 0)
slirp_ssize_t
#else
ssize_t
#endif
net_slirp_send_packet(const void *qp, size_t pkt_len, void *opaque)
{
net_slirp_t *slirp = (net_slirp_t *) opaque;