--- MITgcm/eesupp/src/sigreg.c 2005/12/04 13:57:08 1.2 +++ 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.2 2005/12/04 13:57:08 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,12 +13,13 @@ //EOP */ - +#ifdef HAVE_SIGREG /* Here, we get the definition of the FC_NAMEMANGLE() macro. */ #include "FC_NAMEMANGLE.h" /* #define FC_NAMEMANGLE(X) X ## _ */ +#ifdef HAVE_SIGREG #include #include #include @@ -33,10 +34,12 @@ *ip = *ip + 1; return; } +#endif /* int main( int argc, char ** argv ) */ void FC_NAMEMANGLE(sigreg) (int * aip) { +#ifdef HAVE_SIGREG struct sigaction s; ip = aip; s.sa_flags = SA_SIGINFO; @@ -45,7 +48,8 @@ printf("Sigaction returned error = %d\n", errno); exit(0); } +#endif return; } - +#endif