ffi: added strange hack in order to build master on my machine:
authorHarald Steinlechner <haraldsteinlechner@gmail.com>
Tue, 17 Apr 2012 10:30:10 +0000 (12:30 +0200)
committerHarald Steinlechner <haraldsteinlechner@gmail.com>
Tue, 17 Apr 2012 10:37:17 +0000 (12:37 +0200)
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

index 477897c93c96562a38fcf06c3eaa8e9df2dd2933..32e5217c1ae4e68f178db462db4b004c95ad83e5 100644 (file)
@@ -1,6 +1,19 @@
 #include <stdio.h>
 #include <stdlib.h>
+
+// 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 <signal.h>
+#ifdef RESTORE
+#define __USE_XOPEN2K8
+#endif
+
 #include <asm/ucontext.h>
 
 unsigned int getMethodEntry(unsigned int, void *, void *);