Fix the gettimeofday_timezone test.
This commit is contained in:
@@ -35,7 +35,9 @@ struct timezone
|
||||
};
|
||||
#endif
|
||||
|
||||
void gettimeofday (struct timeval *, struct timezone *);
|
||||
/* This needs to be compatible with Posix signature, in order to pass
|
||||
the configure test for the type of the second argument. */
|
||||
int gettimeofday (struct timeval *, struct timezone *);
|
||||
|
||||
#define ITIMER_REAL 0
|
||||
#define ITIMER_PROF 1
|
||||
|
||||
@@ -2394,7 +2394,7 @@ get_emacs_configuration_options (void)
|
||||
#include <sys/timeb.h>
|
||||
|
||||
/* Emulate gettimeofday (Ulrich Leodolter, 1/11/95). */
|
||||
void
|
||||
int
|
||||
gettimeofday (struct timeval *tv, struct timezone *tz)
|
||||
{
|
||||
struct _timeb tb;
|
||||
@@ -2413,6 +2413,7 @@ gettimeofday (struct timeval *tv, struct timezone *tz)
|
||||
tz->tz_minuteswest = tb.timezone; /* minutes west of Greenwich */
|
||||
tz->tz_dsttime = tb.dstflag; /* type of dst correction */
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Emulate fdutimens. */
|
||||
|
||||
Reference in New Issue
Block a user