aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBin Meng <bin.meng@windriver.com>2022-12-19 18:20:05 +0800
committerChristian Schoenebeck <qemu_oss@crudebyte.com>2022-12-23 11:48:13 +0100
commit6888af46c7849cac8341a32a9da6291270550c5e (patch)
tree207c5ac4e3b5dede4fcb8747855c6fae0c44b247 /include
parent818e42fe2fad033bfd991096451b9994971852ec (diff)
downloadqemu-6888af46c7849cac8341a32a9da6291270550c5e.zip
qemu-6888af46c7849cac8341a32a9da6291270550c5e.tar.gz
qemu-6888af46c7849cac8341a32a9da6291270550c5e.tar.bz2
qemu/xattr.h: Exclude <sys/xattr.h> for Windows
Windows does not have <sys/xattr.h>. Signed-off-by: Bin Meng <bin.meng@windriver.com> Message-Id: <20221219102022.2167736-2-bin.meng@windriver.com> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/xattr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/qemu/xattr.h b/include/qemu/xattr.h
index f1d0f7b..b08a934 100644
--- a/include/qemu/xattr.h
+++ b/include/qemu/xattr.h
@@ -25,7 +25,9 @@
# if !defined(ENOATTR)
# define ENOATTR ENODATA
# endif
-# include <sys/xattr.h>
+# ifndef CONFIG_WIN32
+# include <sys/xattr.h>
+# endif
#endif
#endif