diff mbox series

[Bug,1914870] Re: libvixl compilation failure on Debian unstable

Message ID 162110262720.20719.15564812450430902270.malone@soybean.canonical.com (mailing list archive)
State New, archived
Headers show
Series [Bug,1914870] Re: libvixl compilation failure on Debian unstable | expand

Commit Message

Philippe Mathieu-Daudé May 15, 2021, 6:17 p.m. UTC
Looking at commit 875df03b221 logic ("osdep: protect qemu/osdep.h with extern "C"")
I tried this:
-- >8 --
diff mbox series

Patch

diff --git a/disas/libvixl/vixl/utils.h b/disas/libvixl/vixl/utils.h
index 5ab134e240..fc28d7456c 100644
--- a/disas/libvixl/vixl/utils.h
+++ b/disas/libvixl/vixl/utils.h
@@ -27,8 +27,10 @@ 
 #ifndef VIXL_UTILS_H
 #define VIXL_UTILS_H
 
-#include <string.h>
 #include <cmath>
+extern "C" {
+#include <string.h>
+}
 #include "vixl/globals.h"
 #include "vixl/compiler-intrinsics.h"
---
which fixes the problem...