From 81c9d3f57ecf1c9b72d127217ccf7610a641da91 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/SWIG@979 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Tools/WAD/Wad/signal.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Tools/WAD/Wad/signal.c b/Tools/WAD/Wad/signal.c index b88e821b7..df2afaa46 100644 --- a/Tools/WAD/Wad/signal.c +++ b/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];