[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/9] qemu/xatth.h: Update for Windows build
From: |
Bin Meng |
Subject: |
[PATCH 2/9] qemu/xatth.h: Update for Windows build |
Date: |
Mon, 25 Apr 2022 22:26:58 +0800 |
From: Bin Meng <bin.meng@windriver.com>
Windows does not have <sys/xattr.h>.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
---
include/qemu/xattr.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/qemu/xattr.h b/include/qemu/xattr.h
index f1d0f7be74..b08a934acc 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
--
2.25.1
- [PATCH 0/9] 9pfs: Add 9pfs support for Windows host, Bin Meng, 2022/04/25
- [PATCH 1/9] hw/9pfs: Compile 9p-local.c and 9p-proxy.c for Linux and macOS, Bin Meng, 2022/04/25
- [PATCH 6/9] hw/9pfs: Update 9p-synth.c for Windows build, Bin Meng, 2022/04/25
- [PATCH 2/9] qemu/xatth.h: Update for Windows build,
Bin Meng <=
- [PATCH 4/9] fsdev: Add missing definitions for Windows in file-op-9p.h, Bin Meng, 2022/04/25
- [PATCH 7/9] fsdev: Enable 'local' file system driver backend for Windows, Bin Meng, 2022/04/25
- [PATCH 3/9] hw/9pfs: Extract common stuff to 9p-local.h, Bin Meng, 2022/04/25
- [PATCH 5/9] hw/9pfs: Add a 'local' file system backend driver for Windows, Bin Meng, 2022/04/25
- [PATCH 8/9] meson.build: Turn on virtfs for Windows host, Bin Meng, 2022/04/25
- [PATCH 9/9] hw/9p: win32: Translate Windows error number to Linux value, Bin Meng, 2022/04/25
- Re: [PATCH 0/9] 9pfs: Add 9pfs support for Windows host, Bin Meng, 2022/04/25