diff --git a/lib/isc/log.c b/lib/isc/log.c index 075af545b4..a773a85279 100644 --- a/lib/isc/log.c +++ b/lib/isc/log.c @@ -15,19 +15,19 @@ * SOFTWARE. */ -/* $Id: log.c,v 1.2 1999/09/30 22:14:53 tale Exp $ */ +/* $Id: log.c,v 1.3 1999/10/07 02:10:10 tale Exp $ */ /* Principal Authors: DCL */ #include #include +#include /* For remove(). */ #include #include #include #include #include #include -#include /* XXXDCL NT -- for unlink */ #include #include @@ -668,7 +668,7 @@ roll_log(isc_logchannel_t *channel) { */ while (--greatest >= FILE_VERSIONS(channel)) { sprintf(current, "%s.%d", path, greatest); - (void)unlink(current); + (void)remove(current); } for (i = greatest; i > 0; i /= 10) @@ -697,7 +697,7 @@ roll_log(isc_logchannel_t *channel) { (void)rename(path, new); } else if (FILE_VERSIONS(channel) == 0) - (void)unlink(path); + (void)remove(path); return (ISC_R_SUCCESS); }