#include <stdlib.h>
#include <string.h>
#include <strings.h>
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
#include <assert.h>
#include <errno.h>
#include <time.h>
# define BIN_TYPE_FILE 1
#endif /* def __VMS [else] */
- if ((restval && !(con->cmd & DO_LIST)) || count > 0)
+ if (restval && !(con->cmd & DO_LIST))
{
#ifdef __VMS
int open_id;
#endif /* def __VMS [else] */
}
else if (opt.noclobber || opt.always_rest || opt.timestamping || opt.dirstruct
- || opt.output_document)
+ || opt.output_document || count > 0)
{
if (opt.unlink && file_exists_p (con->target))
{