Fix some win32 compile warnings

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6984 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
blueswir1 2009-04-05 18:03:31 +00:00
parent 1625af873a
commit b9e82a5946
8 changed files with 27 additions and 16 deletions

View file

@ -777,7 +777,11 @@ void
fd_nonblock(int fd)
{
#ifdef FIONBIO
int opt = 1;
#ifdef _WIN32
long opt = 1;
#else
int opt = 1;
#endif
ioctlsocket(fd, FIONBIO, &opt);
#else