--- MITgcm/eesupp/src/sigreg.c 2005/12/03 08:30:32 1.1 +++ MITgcm/eesupp/src/sigreg.c 2006/06/20 03:13:54 1.5 @@ -1,5 +1,5 @@ /* - * $Header: /home/ubuntu/mnt/e9_copy/MITgcm/eesupp/src/sigreg.c,v 1.1 2005/12/03 08:30:32 edhill Exp $ + * $Header: /home/ubuntu/mnt/e9_copy/MITgcm/eesupp/src/sigreg.c,v 1.5 2006/06/20 03:13:54 edhill Exp $ * $Name: $ //BOP @@ -19,6 +19,7 @@ /* #define FC_NAMEMANGLE(X) X ## _ */ +#ifdef HAVE_SIGREG #include #include #include @@ -33,18 +34,21 @@ *ip = *ip + 1; return; } +#endif /* 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)) { printf("Sigaction returned error = %d\n", errno); exit(0); } +#endif return; }