mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
(EMACS_GET_TIME) [USG5_4]: Give gettimeofday just one arg.
This commit is contained in:
parent
ce3f43382e
commit
4fb83f3cde
1 changed files with 8 additions and 0 deletions
|
|
@ -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) \
|
||||
{ \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue