aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/common_linux.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index cb60ca9de..8e816fb8e 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -3528,3 +3528,10 @@ static void setup_usb()
fail("failed to chmod /dev/raw-gadget");
}
#endif
+
+#if GOARCH_s390x
+#include <sys/mman.h>
+// Ugly way to work around gcc's "error: function called through a non-compatible type".
+// The macro is used in generated C code.
+#define CAST(f) ({void* p = (void*)f; p; })
+#endif