aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-17 23:52:35 +0000
committerRichard M. Stallman1994-06-17 23:52:35 +0000
commitaf57e5a7ceaef21e341214c494e742a8f21b1d0d (patch)
treecc2456dc2410329d18b5249a43b3b70ae02ca223 /src
parent2ee5356f14457c9a4df61bc5dedc4d1c33c3d419 (diff)
downloademacs-af57e5a7ceaef21e341214c494e742a8f21b1d0d.tar.gz
emacs-af57e5a7ceaef21e341214c494e742a8f21b1d0d.zip
(EMACS_GET_TIME): Test GETTIMEOFDAY_ONE_ARGUMENT, not USG5_4.
Diffstat (limited to 'src')
-rw-r--r--src/systime.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/systime.h b/src/systime.h
index 78fd84b074e..188a4743f32 100644
--- a/src/systime.h
+++ b/src/systime.h
@@ -96,18 +96,18 @@ extern long timezone;
96#define EMACS_SET_USECS(time, microseconds) ((time).tv_usec = (microseconds)) 96#define EMACS_SET_USECS(time, microseconds) ((time).tv_usec = (microseconds))
97 97
98/* On SVR4, the compiler may complain if given this extra BSD arg. */ 98/* On SVR4, the compiler may complain if given this extra BSD arg. */
99#ifdef USG5_4 99#ifdef GETTIMEOFDAY_ONE_ARGUMENT
100#define EMACS_GET_TIME(time) \ 100#define EMACS_GET_TIME(time) \
101{ \ 101{ \
102 gettimeofday (&(time)); \ 102 gettimeofday (&(time)); \
103} 103}
104#else /* not USG5_4 */ 104#else /* not GETTIMEOFDAY_ONE_ARGUMENT */
105#define EMACS_GET_TIME(time) \ 105#define EMACS_GET_TIME(time) \
106{ \ 106{ \
107 struct timezone dummy; \ 107 struct timezone dummy; \
108 gettimeofday (&(time), &dummy); \ 108 gettimeofday (&(time), &dummy); \
109} 109}
110#endif /* not USG5_4 */ 110#endif /* not GETTIMEOFDAY_ONE_ARGUMENT */
111 111
112#define EMACS_ADD_TIME(dest, src1, src2) \ 112#define EMACS_ADD_TIME(dest, src1, src2) \
113{ \ 113{ \