# HG changeset patch # User Karl Heuer # Date 781134717 0 # Node ID d4ad53f37cc76ea9342106b47617b214fa98efcc # Parent 8d32c453160ff37ae706492d3defa3869912b747 Include here instead of in systime.h. (set_file_times): Move struct declaration to top of file. diff -r 8d32c453160f -r d4ad53f37cc7 src/sysdep.c --- a/src/sysdep.c Sun Oct 02 21:41:57 1994 +0000 +++ b/src/sysdep.c Sun Oct 02 21:51:57 1994 +0000 @@ -156,6 +156,20 @@ #include "syssignal.h" #include "systime.h" +#ifdef HAVE_UTIME_H +#include +#endif + +#ifndef HAVE_UTIMES +#ifndef HAVE_STRUCT_UTIMBUF +/* We want to use utime rather than utimes, but we couldn't find the + structure declaration. We'll use the traditional one. */ +struct utimbuf { + long actime; + long modtime; +}; +#endif +#endif /* LPASS8 is new in 4.3, and makes cbreak mode provide all 8 bits. */ #ifndef LPASS8 @@ -3364,12 +3378,6 @@ tv[1] = mtime; return utimes (filename, tv); #else /* not HAVE_UTIMES */ -#ifndef HAVE_STRUCT_UTIMBUF - struct utimbuf { - long actime; - long modtime; - }; -#endif struct utimbuf utb; utb.actime = EMACS_SECS (atime); utb.modtime = EMACS_SECS (mtime);