diff options
author | Karl Heuer <kwzh@gnu.org> | 1994-10-02 21:51:57 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1994-10-02 21:51:57 +0000 |
commit | 9030a7270e8ca1a2494f463cd29dea7eb82b565e (patch) | |
tree | 02138a29621d9e0023c0eb4d5ae8a2922312e10a /src/sysdep.c | |
parent | 8fc0cc064ba6b9b3a1c526e749cfae4c8848d1f3 (diff) | |
download | emacs-9030a7270e8ca1a2494f463cd29dea7eb82b565e.tar.gz |
Include <utime.h> here instead of in systime.h.
(set_file_times): Move struct declaration to top of file.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r-- | src/sysdep.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 3b2b2f613b3..a696e2192d4 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -156,6 +156,20 @@ extern int quit_char; #include "syssignal.h" #include "systime.h" +#ifdef HAVE_UTIME_H +#include <utime.h> +#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 @@ set_file_times (filename, atime, mtime) 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); |