diff --git a/src/utilities/guard/guard.cpp b/src/utilities/guard/guard.cpp index dbabbaa82c..687e09aca3 100644 --- a/src/utilities/guard/guard.cpp +++ b/src/utilities/guard/guard.cpp @@ -15,7 +15,7 @@ * * All Rights Reserved. * Contributor(s): ______________________________________. - * $Id: guard.cpp,v 1.8.12.2 2006-04-16 15:29:20 asfernandes Exp $ + * $Id: guard.cpp,v 1.8.12.3 2006-04-18 08:56:34 alexpeshkoff Exp $ */ /* contains the main() and not shared routines for ibguard */ @@ -39,10 +39,6 @@ #include #endif -#ifdef HAVE_UNISTD_H -#include -#endif - #include "../jrd/common.h" #include "../jrd/divorce.h" #include "../jrd/isc_proto.h" @@ -228,11 +224,9 @@ int CLIB_ROUTINE main( int argc, char **argv) } } while (!done); -#ifdef HAVE_UNISTD_H if (pidfilename) { - unlink(pidfilename); + remove(pidfilename); } -#endif UTIL_ex_unlock(fd_guard); exit(0); } /* main */