mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
Fix mingw32 build warnings
Work around buffer and ioctlsocket argument type signedness problems Suppress a prototype which is unused on mingw32 Expand a macro to avoid warnings from some GCC versions Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
487fefdb1e
commit
c5b76b3810
7 changed files with 37 additions and 12 deletions
|
@ -778,7 +778,7 @@ fd_nonblock(int fd)
|
|||
{
|
||||
#ifdef FIONBIO
|
||||
#ifdef _WIN32
|
||||
long opt = 1;
|
||||
unsigned long opt = 1;
|
||||
#else
|
||||
int opt = 1;
|
||||
#endif
|
||||
|
@ -797,7 +797,11 @@ void
|
|||
fd_block(int fd)
|
||||
{
|
||||
#ifdef FIONBIO
|
||||
#ifdef _WIN32
|
||||
unsigned long opt = 0;
|
||||
#else
|
||||
int opt = 0;
|
||||
#endif
|
||||
|
||||
ioctlsocket(fd, FIONBIO, &opt);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue