Browse Source

9p: don't include <sys/uio.h>

The <sys/uio.h> system header doesn't exist on all host platforms. Code
should include "qemu/osdep.h" instead to avoid build breaks on plafforms
that don't define CONFIG_IOVEC (like win32, if it is to support 9p one day).

Acked-by: Cédric Le Goater <clg@kaod.org>
Acked-by: Michael Fritscher <michael@fritscher.net>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Greg Kurz 9 years ago
parent
commit
8d85a22aab
3 changed files with 0 additions and 3 deletions
  1. 0 1
      fsdev/9p-iov-marshal.c
  2. 0 1
      fsdev/9p-marshal.c
  3. 0 1
      fsdev/file-op-9p.h

+ 0 - 1
fsdev/9p-iov-marshal.c

@@ -14,7 +14,6 @@
 #include "qemu/osdep.h"
 #include "qemu/osdep.h"
 #include <glib/gprintf.h>
 #include <glib/gprintf.h>
 #include <utime.h>
 #include <utime.h>
-#include <sys/uio.h>
 
 
 #include "9p-iov-marshal.h"
 #include "9p-iov-marshal.h"
 #include "qemu/bswap.h"
 #include "qemu/bswap.h"

+ 0 - 1
fsdev/9p-marshal.c

@@ -15,7 +15,6 @@
 #include <glib/gprintf.h>
 #include <glib/gprintf.h>
 #include <dirent.h>
 #include <dirent.h>
 #include <utime.h>
 #include <utime.h>
-#include <sys/uio.h>
 
 
 #include "9p-marshal.h"
 #include "9p-marshal.h"
 
 

+ 0 - 1
fsdev/file-op-9p.h

@@ -14,7 +14,6 @@
 #define _FILEOP_H
 #define _FILEOP_H
 #include <dirent.h>
 #include <dirent.h>
 #include <utime.h>
 #include <utime.h>
-#include <sys/uio.h>
 #include <sys/vfs.h>
 #include <sys/vfs.h>
 
 
 #define SM_LOCAL_MODE_BITS    0600
 #define SM_LOCAL_MODE_BITS    0600