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
4fb83f3c
Commit
4fb83f3c
authored
Dec 26, 1993
by
Richard M. Stallman
Browse files
(EMACS_GET_TIME) [USG5_4]: Give gettimeofday just one arg.
parent
ce3f4338
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/systime.h
src/systime.h
+8
-0
No files found.
src/systime.h
View file @
4fb83f3c
...
...
@@ -86,11 +86,19 @@ extern long timezone;
#define EMACS_SET_SECS(time, seconds) ((time).tv_sec = (seconds))
#define EMACS_SET_USECS(time, microseconds) ((time).tv_usec = (microseconds))
/* On SVR4, the compiler may complain if given this extra BSD arg. */
#ifdef USG5_4
#define EMACS_GET_TIME(time) \
{ \
gettimeofday (&(time)); \
}
#else
/* not USG5_4 */
#define EMACS_GET_TIME(time) \
{ \
struct timezone dummy; \
gettimeofday (&(time), &dummy); \
}
#endif
/* not USG5_4 */
#define EMACS_ADD_TIME(dest, src1, src2) \
{ \
...
...
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