Fix the gettimeofday_timezone test.

This commit is contained in:
Eli Zaretskii
2013-03-28 22:20:40 +02:00
parent 845b7499e3
commit 97dababa47
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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. */