termux-packages/packages/qemu-system-x86_64-headless/0004-fix-time_nsec-defs.patch

23 lines
522 B
Diff

diff -uNr qemu-4.2.0/fsdev/9p-marshal.h qemu-4.2.0.mod/fsdev/9p-marshal.h
--- qemu-4.2.0/fsdev/9p-marshal.h 2019-12-12 20:20:47.000000000 +0200
+++ qemu-4.2.0.mod/fsdev/9p-marshal.h 2019-12-15 00:09:59.586176320 +0200
@@ -48,6 +48,18 @@
int64_t mtime_nsec;
} V9fsIattr;
+#ifdef st_atime_nsec
+# undef st_atime_nsec
+#endif
+
+#ifdef st_mtime_nsec
+# undef st_mtime_nsec
+#endif
+
+#ifdef st_ctime_nsec
+# undef st_ctime_nsec
+#endif
+
typedef struct V9fsStatDotl {
uint64_t st_result_mask;
V9fsQID qid;