# HG changeset patch # User Richard M. Stallman # Date 780453646 0 # Node ID b85ea5d2308930f2eadd20f8b7cc1cb1fc813b59 # Parent 870ac6d473a45f6fca97de1d05231e85c727da0b (set_file_times): Don't test HAVE_UTIME. Assume utime exists if utimes does not. diff -r 870ac6d473a4 -r b85ea5d23089 src/sysdep.c --- a/src/sysdep.c Sun Sep 25 00:38:02 1994 +0000 +++ b/src/sysdep.c Sun Sep 25 00:40:46 1994 +0000 @@ -3355,16 +3355,15 @@ int set_file_times (path, atime, mtime) - char *path; + char *filename; EMACS_TIME atime, mtime; { #ifdef HAVE_UTIMES struct timeval tv[2]; tv[0] = atime; tv[1] = mtime; - return utimes (path, tv); -#else -#ifdef HAVE_UTIME + return utimes (filename, tv); +#else /* not HAVE_UTIMES */ #ifndef HAVE_STRUCT_UTIMBUF struct utimbuf { long actime; @@ -3374,12 +3373,8 @@ struct utimbuf utb; utb.actime = EMACS_SECS (atime); utb.modtime = EMACS_SECS (mtime); - return utime (path, &utb); -#else /* !HAVE_UTIMES && !HAVE_UTIME */ - /* Should we set errno here? If so, set it to what? */ - return -1; -#endif -#endif + return utime (filename, &utb); +#endif /* not HAVE_UTIMES */ } /* mkdir and rmdir functions, for systems which don't have them. */