diff options
| author | Alexander Egorenkov <Alexander.Egorenkov@ibm.com> | 2020-06-26 11:12:00 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-06-26 12:01:33 +0200 |
| commit | b202c7a8a2a033a10f17bb2fa0f790851075ae2b (patch) | |
| tree | e3dc13731cef9704e9bc5c6b00ce7cfe28070123 /executor/common_linux.h | |
| parent | aea82c003a1826ebd9bf53194bb40fe911f9c23e (diff) | |
pkg/csource: fix casting of parameters for trampolines
Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 7 |
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 |
