diff options
| author | Eli Zaretskii | 2013-03-28 22:20:40 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2013-03-28 22:20:40 +0200 |
| commit | 97dababa47e5b2133f18f05f415dcf42c7066f84 (patch) | |
| tree | 33337aa146be4532584bb522069e27c16d19a4e2 | |
| parent | 845b7499e398a10f87a0f1ed307101215c82d218 (diff) | |
| download | emacs-97dababa47e5b2133f18f05f415dcf42c7066f84.tar.gz emacs-97dababa47e5b2133f18f05f415dcf42c7066f84.zip | |
Fix the gettimeofday_timezone test.
| -rw-r--r-- | nt/inc/sys/time.h | 4 | ||||
| -rw-r--r-- | src/w32.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/nt/inc/sys/time.h b/nt/inc/sys/time.h index aa51041bcd8..391898ef122 100644 --- a/nt/inc/sys/time.h +++ b/nt/inc/sys/time.h | |||
| @@ -35,7 +35,9 @@ struct timezone | |||
| 35 | }; | 35 | }; |
| 36 | #endif | 36 | #endif |
| 37 | 37 | ||
| 38 | void gettimeofday (struct timeval *, struct timezone *); | 38 | /* This needs to be compatible with Posix signature, in order to pass |
| 39 | the configure test for the type of the second argument. */ | ||
| 40 | int gettimeofday (struct timeval *, struct timezone *); | ||
| 39 | 41 | ||
| 40 | #define ITIMER_REAL 0 | 42 | #define ITIMER_REAL 0 |
| 41 | #define ITIMER_PROF 1 | 43 | #define ITIMER_PROF 1 |
| @@ -2394,7 +2394,7 @@ get_emacs_configuration_options (void) | |||
| 2394 | #include <sys/timeb.h> | 2394 | #include <sys/timeb.h> |
| 2395 | 2395 | ||
| 2396 | /* Emulate gettimeofday (Ulrich Leodolter, 1/11/95). */ | 2396 | /* Emulate gettimeofday (Ulrich Leodolter, 1/11/95). */ |
| 2397 | void | 2397 | int |
| 2398 | gettimeofday (struct timeval *tv, struct timezone *tz) | 2398 | gettimeofday (struct timeval *tv, struct timezone *tz) |
| 2399 | { | 2399 | { |
| 2400 | struct _timeb tb; | 2400 | struct _timeb tb; |
| @@ -2413,6 +2413,7 @@ gettimeofday (struct timeval *tv, struct timezone *tz) | |||
| 2413 | tz->tz_minuteswest = tb.timezone; /* minutes west of Greenwich */ | 2413 | tz->tz_minuteswest = tb.timezone; /* minutes west of Greenwich */ |
| 2414 | tz->tz_dsttime = tb.dstflag; /* type of dst correction */ | 2414 | tz->tz_dsttime = tb.dstflag; /* type of dst correction */ |
| 2415 | } | 2415 | } |
| 2416 | return 0; | ||
| 2416 | } | 2417 | } |
| 2417 | 2418 | ||
| 2418 | /* Emulate fdutimens. */ | 2419 | /* Emulate fdutimens. */ |