]> git.proxmox.com Git - mirror_qemu.git/blobdiff - io/channel-util.c
i386: Update new x86_apicid parsing rules with die_offset support
[mirror_qemu.git] / io / channel-util.c
index f96907cb5c3360f6141c03ff3c76657c0712c125..423d79845a20a4e534c109f78889623348e42cb2 100644 (file)
  *
  */
 
+#include "qemu/osdep.h"
 #include "io/channel-util.h"
 #include "io/channel-file.h"
 #include "io/channel-socket.h"
 
 
-static bool fd_is_socket(int fd)
-{
-    int optval;
-    socklen_t optlen;
-    optlen = sizeof(optval);
-    return qemu_getsockopt(fd,
-                           SOL_SOCKET,
-                           SO_TYPE,
-                           (char *)&optval,
-                           &optlen) == 0;
-}
-
-
 QIOChannel *qio_channel_new_fd(int fd,
                                Error **errp)
 {