--- MITgcm/eesupp/src/sigreg.c 2006/05/22 22:05:18 1.3 +++ MITgcm/eesupp/src/sigreg.c 2007/07/31 22:48:34 1.6 @@ -1,5 +1,5 @@ /* - * $Header: /home/ubuntu/mnt/e9_copy/MITgcm/eesupp/src/sigreg.c,v 1.3 2006/05/22 22:05:18 edhill Exp $ + * $Header: /home/ubuntu/mnt/e9_copy/MITgcm/eesupp/src/sigreg.c,v 1.6 2007/07/31 22:48:34 ce107 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" @@ -25,11 +25,9 @@ #include #include #include -#endif int * ip; -#ifdef HAVE_SIGREG static void killhandler( unsigned int sn, siginfo_t si, struct ucontext *sc ) { @@ -41,9 +39,9 @@ /* int main( int argc, char ** argv ) */ void FC_NAMEMANGLE(sigreg) (int * aip) { - ip = aip; #ifdef HAVE_SIGREG struct sigaction s; + ip = aip; s.sa_flags = SA_SIGINFO; s.sa_sigaction = (void *)killhandler; if(sigaction (SIGTERM,&s,(struct sigaction *)NULL)) { @@ -53,5 +51,5 @@ #endif return; } - +#endif