summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
authorreggie@linux.site <>2005-07-12 10:31:09 -0600
committerreggie@linux.site <>2005-07-12 10:31:09 -0600
commitc31d71c065304b7cd1c237174da19a8d4270fb26 (patch)
tree064a0becf332b11c51aa50216454f07e4b8581a6 /vio
parent25deb84c0a2cffe20496945031278d91bb1163eb (diff)
downloadmariadb-git-c31d71c065304b7cd1c237174da19a8d4270fb26.tar.gz
Fixed some vio code that was using ___WIN__ instead of __WIN__
Diffstat (limited to 'vio')
-rw-r--r--vio/vio.c4
-rw-r--r--vio/viosocket.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/vio/vio.c b/vio/vio.c
index 978780d2632..4660efe3048 100644
--- a/vio/vio.c
+++ b/vio/vio.c
@@ -130,7 +130,7 @@ Vio *vio_new(my_socket sd, enum enum_vio_type type, my_bool localhost)
sprintf(vio->desc,
(vio->type == VIO_TYPE_SOCKET ? "socket (%d)" : "TCP/IP (%d)"),
vio->sd);
-#if !defined(___WIN__) && !defined(__EMX__) && !defined(OS2)
+#if !defined(__WIN__) && !defined(__EMX__) && !defined(OS2)
#if !defined(NO_FCNTL_NONBLOCK)
#if defined(__FreeBSD__)
fcntl(sd, F_SETFL, vio->fcntl_mode); /* Yahoo! FreeBSD patch */
@@ -145,7 +145,7 @@ Vio *vio_new(my_socket sd, enum enum_vio_type type, my_bool localhost)
{
/* set to blocking mode by default */
ulong arg=0, r;
- r = ioctlsocket(sd,FIONBIO,(void*) &arg, sizeof(arg));
+ r = ioctlsocket(sd,FIONBIO,(void*) &arg);
vio->fcntl_mode &= ~O_NONBLOCK;
}
#endif
diff --git a/vio/viosocket.c b/vio/viosocket.c
index 904b75583a9..c7561890ead 100644
--- a/vio/viosocket.c
+++ b/vio/viosocket.c
@@ -82,7 +82,7 @@ int vio_blocking(Vio * vio __attribute__((unused)), my_bool set_blocking_mode,
DBUG_PRINT("enter", ("set_blocking_mode: %d old_mode: %d",
(int) set_blocking_mode, (int) *old_mode));
-#if !defined(___WIN__) && !defined(__EMX__)
+#if !defined(__WIN__) && !defined(__EMX__)
#if !defined(NO_FCNTL_NONBLOCK)
if (vio->sd >= 0)
{
@@ -115,7 +115,7 @@ int vio_blocking(Vio * vio __attribute__((unused)), my_bool set_blocking_mode,
vio->fcntl_mode |= O_NONBLOCK; /* set bit */
}
if (old_fcntl != vio->fcntl_mode)
- r = ioctlsocket(vio->sd,FIONBIO,(void*) &arg, sizeof(arg));
+ r = ioctlsocket(vio->sd,FIONBIO,(void*) &arg);
}
#ifndef __EMX__
else