Commit 4fb83f3c authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(EMACS_GET_TIME) [USG5_4]: Give gettimeofday just one arg.

parent ce3f4338
...@@ -86,11 +86,19 @@ extern long timezone; ...@@ -86,11 +86,19 @@ extern long timezone;
#define EMACS_SET_SECS(time, seconds) ((time).tv_sec = (seconds)) #define EMACS_SET_SECS(time, seconds) ((time).tv_sec = (seconds))
#define EMACS_SET_USECS(time, microseconds) ((time).tv_usec = (microseconds)) #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) \ #define EMACS_GET_TIME(time) \
{ \ { \
struct timezone dummy; \ struct timezone dummy; \
gettimeofday (&(time), &dummy); \ gettimeofday (&(time), &dummy); \
} }
#endif /* not USG5_4 */
#define EMACS_ADD_TIME(dest, src1, src2) \ #define EMACS_ADD_TIME(dest, src1, src2) \
{ \ { \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment