]> git.proxmox.com Git - qemu.git/blobdiff - oslib-win32.c
rtl8139: remove unused marco
[qemu.git] / oslib-win32.c
index 5f0759ffc48435cc504a62fdb5381fd9cc00b855..ce3021e6c72201c7296e9346a1b77a38e5342f78 100644 (file)
@@ -73,6 +73,12 @@ void qemu_vfree(void *ptr)
     VirtualFree(ptr, 0, MEM_RELEASE);
 }
 
+void socket_set_block(int fd)
+{
+    unsigned long opt = 0;
+    ioctlsocket(fd, FIONBIO, &opt);
+}
+
 void socket_set_nonblock(int fd)
 {
     unsigned long opt = 1;
@@ -112,3 +118,8 @@ int qemu_gettimeofday(qemu_timeval *tp)
      Do not set errno on error.  */
   return 0;
 }
+
+int qemu_get_thread_id(void)
+{
+    return GetCurrentThreadId();
+}