From 737bff3ee5690d28d0d51cd7d298a2abf37ad25b Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Tue, 2 Jan 2001 17:44:37 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@979 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Tools/WAD/Wad/signal.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/SWIG/Tools/WAD/Wad/signal.c b/SWIG/Tools/WAD/Wad/signal.c index b88e821b7..df2afaa46 100644 --- a/SWIG/Tools/WAD/Wad/signal.c +++ b/SWIG/Tools/WAD/Wad/signal.c @@ -11,6 +11,21 @@ #include "wad.h" +/* For some odd reason, certain linux distributions do not seem to define the + ESP, EIP, and EBP registers. This is a hack */ + +#ifdef WAD_LINUX +#ifndef ESP +#define ESP 7 +#endif +#ifndef EBP +#define EBP 6 +#endif +#ifndef EIP +#define EIP 14 +#endif +#endif + /* Signal handling stack */ #define STACK_SIZE 4*SIGSTKSZ char wad_sig_stack[STACK_SIZE];