--- MITgcm/eesupp/src/sigreg.c 2006/06/20 03:13:54 1.5 +++ MITgcm/eesupp/src/sigreg.c 2011/08/10 22:33:32 1.7 @@ -1,5 +1,5 @@ /* - * $Header: /home/ubuntu/mnt/e9_copy/MITgcm/eesupp/src/sigreg.c,v 1.5 2006/06/20 03:13:54 edhill Exp $ + * $Header: /home/ubuntu/mnt/e9_copy/MITgcm/eesupp/src/sigreg.c,v 1.7 2011/08/10 22:33:32 jahn Exp $ * $Name: $ //BOP @@ -13,7 +13,7 @@ //EOP */ - +#ifdef HAVE_SIGREG /* Here, we get the definition of the FC_NAMEMANGLE() macro. */ #include "FC_NAMEMANGLE.h" @@ -26,12 +26,12 @@ #include #include -int * ip; +int * sigreg_ip; static void killhandler( unsigned int sn, siginfo_t si, struct ucontext *sc ) { - *ip = *ip + 1; + *sigreg_ip = *sigreg_ip + 1; return; } #endif @@ -41,7 +41,7 @@ { #ifdef HAVE_SIGREG struct sigaction s; - ip = aip; + sigreg_ip = aip; s.sa_flags = SA_SIGINFO; s.sa_sigaction = (void *)killhandler; if(sigaction (SIGTERM,&s,(struct sigaction *)NULL)) { @@ -51,5 +51,5 @@ #endif return; } - +#endif