mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Fix type error (libslirp 32-bit)
This commit is contained in:
2
.github/workflows/mingw32.yml
vendored
2
.github/workflows/mingw32.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
with:
|
||||
msystem: MINGW32
|
||||
update: true
|
||||
install: git make base-devel mingw-w64-i686-toolchain mingw-w64-i686-libtool mingw-w64-i686-nasm autoconf automake mingw-w64-i686-ncurses mingw-w64-i686-binutils
|
||||
install: git make base-devel mingw-w64-i686-toolchain mingw-w64-i686-libtool mingw-w64-i686-nasm autoconf automake mingw-w64-i686-ncurses mingw-w64-i686-binutils mingw-w64-i686-libslirp
|
||||
- name: Install libslirp
|
||||
if: false
|
||||
run: |
|
||||
|
2
.github/workflows/windows-installers.yml
vendored
2
.github/workflows/windows-installers.yml
vendored
@@ -179,7 +179,7 @@ jobs:
|
||||
with:
|
||||
msystem: MINGW32
|
||||
update: true
|
||||
install: git mingw-w64-i686-toolchain mingw-w64-i686-libtool mingw-w64-i686-nasm autoconf automake
|
||||
install: git mingw-w64-i686-toolchain mingw-w64-i686-libtool mingw-w64-i686-nasm autoconf automake mingw-w64-i686-libslirp
|
||||
- name: Update build info
|
||||
shell: bash
|
||||
run: |
|
||||
|
@@ -56,7 +56,13 @@ int inet_pton_win(int af, const char* src, void* dst)
|
||||
* object. This is done by passing our SlirpEthernetConnection as user data.
|
||||
*/
|
||||
|
||||
ssize_t slirp_receive_packet(const void* buf, size_t len, void* opaque)
|
||||
// libslirp >= 4.8.0 defines slirp_ssize_t but will break compatibility with older versions
|
||||
#ifdef _WIN32
|
||||
SSIZE_T
|
||||
#else
|
||||
ssize_t
|
||||
#endif
|
||||
slirp_receive_packet(const void* buf, size_t len, void* opaque)
|
||||
{
|
||||
SlirpEthernetConnection* conn = (SlirpEthernetConnection*)opaque;
|
||||
conn->ReceivePacket((const uint8_t*)buf, len);
|
||||
|
Reference in New Issue
Block a user