Index: jit-main.c =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/jit-main.c,v retrieving revision 1.1 diff -u -r1.1 jit-main.c --- jit-main.c 31 Jan 2011 21:44:52 -0000 1.1 +++ jit-main.c 24 Feb 2011 20:45:39 -0000 @@ -29,6 +29,19 @@ #include #include +/* ElfW is coming from linux. On other platforms it does not exist. + Let us define it here. */ +#ifndef ElfW +# if (defined (_LP64) || defined (__LP64__)) +# define WORDSIZE 64 +# else +# define WORDSIZE 32 +# endif /* _LP64 || __LP64__ */ +#define ElfW(type) _ElfW (Elf, WORDSIZE, type) +#define _ElfW(e,w,t) _ElfW_1 (e, w, _##t) +#define _ElfW_1(e,w,t) e##w##t +#endif /* !ElfW */ + typedef enum { JIT_NOACTION = 0,