aboutsummaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-05 18:03:31 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-05 18:03:31 +0000
commit80d58a9d0179c137a6445a49f402b84d47919479 (patch)
tree49fd2be4606c99bc88fa603ad18a69d5764d35f0 /misc.c
parent042da2e63c651040743d682a6dca7aa76f29f851 (diff)
downloadslirp-80d58a9d0179c137a6445a49f402b84d47919479.zip
slirp-80d58a9d0179c137a6445a49f402b84d47919479.tar.gz
slirp-80d58a9d0179c137a6445a49f402b84d47919479.tar.bz2
Fix some win32 compile warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6984 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index b90a4a4..13ceb0c 100644
--- a/misc.c
+++ b/misc.c
@@ -761,7 +761,11 @@ void u_sleep(int usec)
void fd_nonblock(int fd)
{
#ifdef FIONBIO
+#ifdef _WIN32
+ long opt = 1;
+#else
int opt = 1;
+#endif
ioctlsocket(fd, FIONBIO, &opt);
#else