Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d79998bc
Commit
d79998bc
authored
Oct 02, 1994
by
Karl Heuer
Browse files
Include <utime.h> here instead of in systime.h.
(set_file_times): Move struct declaration to top of file.
parent
a67fa899
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
src/sysdep.c
src/sysdep.c
+14
-6
No files found.
src/sysdep.c
View file @
d79998bc
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment