From efbc474ec126b432c85acb00f74d82d934ce0a62 Mon Sep 17 00:00:00 2001 From: Harald Steinlechner Date: Tue, 17 Apr 2012 12:30:10 +0200 Subject: [PATCH] ffi: added strange hack in order to build master on my machine: Linux version 3.0.0-12-generic (buildd@aro 4.6.1-9ubuntu3) #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011, gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1; --- ffi/trap.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ffi/trap.c b/ffi/trap.c index 477897c..32e5217 100644 --- a/ffi/trap.c +++ b/ffi/trap.c @@ -1,6 +1,19 @@ #include #include + +// Note by hs: my signal.h includes sys/uconctext which conflicts with +// asm/ucontext - this hack kinda solves the problem for me ;-) +// so feel free to blame me for that s**t +#if defined __USE_XOPEN2K8 +#undef __USE_XOPEN2K8 +#define RESTORE +#warning hs-hack: undefining __USE_XOPEN2K8 for signal.h +#endif #include +#ifdef RESTORE +#define __USE_XOPEN2K8 +#endif + #include unsigned int getMethodEntry(unsigned int, void *, void *); -- 2.25.1