qemu/xattr.h: Exclude <sys/xattr.h> for Windows
authorBin Meng <bin.meng@windriver.com>
Mon, 19 Dec 2022 10:20:05 +0000 (18:20 +0800)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Fri, 23 Dec 2022 10:48:13 +0000 (11:48 +0100)
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>
include/qemu/xattr.h

index f1d0f7be74bc39a429277fc06e65e6757ef87723..b08a934acc2db68d5f90c72e71148c898ef39431 100644 (file)
@@ -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