diff options
author | Ken Foskey <waratah@openoffice.org> | 2002-10-11 12:42:49 +0000 |
---|---|---|
committer | Ken Foskey <waratah@openoffice.org> | 2002-10-11 12:42:49 +0000 |
commit | bc95f59574c8d2535fa028e8a6af09f826725801 (patch) | |
tree | 5d0d413043879f3fc13b8fe3ce0b3e9c2188de73 /dmake/sysintf.c | |
parent | 68496a2957e2f4b7bb2b8a943236ea4859905bf2 (diff) |
dmake: Implement fix for Lost child problem. Correct some checks for functions (assumed present) and also fix up all gcc warnings using -Wall.
Diffstat (limited to 'dmake/sysintf.c')
-rw-r--r-- | dmake/sysintf.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/dmake/sysintf.c b/dmake/sysintf.c index c2fbe7cf05fa..ce966e2c2ceb 100644 --- a/dmake/sysintf.c +++ b/dmake/sysintf.c @@ -1,4 +1,4 @@ -/* RCS $Id: sysintf.c,v 1.3 2001-02-19 16:08:04 hjs Exp $ +/* RCS $Id: sysintf.c,v 1.4 2002-10-11 13:42:44 waratah Exp $ -- -- SYNOPSIS -- System independent interface @@ -125,7 +125,11 @@ char **member; else if( strlen(Basename(name)) > NameMax ) return(-1); else - return( utime(name, NIL(time_t)) ); +#ifdef HAVE_UTIME_NULL + return( utime(name, NULL) ); +#else +# error "Utime NULL not supported" +#endif } @@ -598,7 +602,7 @@ CELLPTR target; : (status & 0xff)==SIGTERM ? -1 : (status & 0x7f)+128); - if( status ) + if( status ) { if( !abort_flg ) { char buf[512]; @@ -636,6 +640,7 @@ CELLPTR target; } else if(!(target->ce_attr & A_PRECIOUS)||(target->ce_attr & A_ERRREMOVE)) Remove_file( target->ce_fname ); + } } |