Index: /trunk/src/VBox/Runtime/r3/socket.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/socket.cpp	(revision 70483)
+++ /trunk/src/VBox/Runtime/r3/socket.cpp	(revision 70484)
@@ -688,7 +688,8 @@
     /*
      * Got socket pair, so use it.
+     * Note! This isn't TCP per se, but it should fool the users.
      */
     int aSockets[2] = { -1, -1 };
-    if (socketpair(AF_INET, SOCK_STREAM, IPPROTO_TCP, aSockets) == 0)
+    if (socketpair(AF_LOCAL, SOCK_STREAM, 0, aSockets) == 0)
     {
         *phServer = aSockets[0];
@@ -2877,5 +2878,5 @@
                 /* If no bytes are available, assume error condition. */
                 u_long cbAvail = 0;
-                rc = ioctlsocket(pThis->hNative, FIONREAD, &cbAvail);
+                rc = g_pfnioctlsocket(pThis->hNative, FIONREAD, &cbAvail);
                 if (rc == 0 && cbAvail == 0)
                     fRetEvents |= RTPOLL_EVT_ERROR;
