Print this page
make: unifdef for NSE (undefined)
*** 116,130 ****
* recursive_name The Name ".RECURSIVE", written
* rewrite_statefile Indicates that something changed
*/
void
- #ifdef NSE
- write_state_file(int report_recursive, Boolean exiting)
- #else
write_state_file(int, Boolean exiting)
- #endif
{
register FILE *fd;
int lock_err;
char buffer[MAXPATHLEN];
char make_state_tempfile[MAXPATHLEN];
--- 116,126 ----
*** 196,210 ****
make_state_locked = false;
fatal(catgets(catd, 1, 59, "Could not open temporary statefile `%s': %s"),
make_state_tempfile,
errmsg(lock_err));
}
- #ifdef NSE
- if (nse) {
- (void) fchmod(fileno(fd), 0666);
- }
- #endif
/*
* Set a trap for failed writes. If a write fails, the routine
* will try saving the .make.state file under another name in /tmp.
*/
if (setjmp(long_jump)) {
--- 192,201 ----
*** 396,410 ****
(void) unlink(make_state_lockfile);
retmem_mb(make_state_lockfile);
make_state_lockfile = NULL;
make_state_locked = false;
}
- #ifdef NSE
- if (report_recursive) {
- report_recursive_done();
- }
- #endif
}
/*
* print_auto_depes(dependency, fd, built_this_run,
* line_length, target_name, long_jump)
--- 387,396 ----