# HG changeset patch # User Karl Heuer # Date 780034068 0 # Node ID e743d295739968e65866d5361079a3cf104ac5f4 # Parent f060ee7326c5305350c1c8e6376e409fe2f04766 (set_file_times): Move this out of the USG conditional. diff -r f060ee7326c5 -r e743d2957399 src/sysdep.c --- a/src/sysdep.c Tue Sep 20 03:18:33 1994 +0000 +++ b/src/sysdep.c Tue Sep 20 04:07:48 1994 +0000 @@ -3023,35 +3023,6 @@ #endif -int -set_file_times (path, atime, mtime) - char *path; - 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 -#ifndef HAVE_STRUCT_UTIMBUF - struct utimbuf { - long actime; - long modtime; - }; -#endif - 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 -} - #ifdef HPUX #ifndef HAVE_PERROR @@ -3391,6 +3362,35 @@ #endif /* NONSYSTEM_DIR_LIBRARY */ +int +set_file_times (path, atime, mtime) + char *path; + 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 +#ifndef HAVE_STRUCT_UTIMBUF + struct utimbuf { + long actime; + long modtime; + }; +#endif + 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 +} + /* mkdir and rmdir functions, for systems which don't have them. */ #ifndef HAVE_MKDIR