Compilation fix for libslirp on mingw/msys.

Unlike the official release, the mingw* version of libslirp.h doesn't define slirp_ssize_t.
This commit is contained in:
Volker Ruppert 2024-05-06 17:22:47 +02:00
parent 140e2e96ae
commit e64ec27113
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@
#if BX_HAVE_LIBSLIRP
#include <slirp/libslirp.h>
#ifdef __MINGW32__
typedef ssize_t slirp_ssize_t;
#endif
#else
#include "slirp/libslirp.h"
#endif