diff options
| author | Eli Zaretskii | 2013-06-03 20:15:44 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-06-03 20:15:44 +0300 |
| commit | e2d8a6f0a229b4ebe26484b892ec4f14888f58b6 (patch) | |
| tree | 7737e85964517cd7a183e777c9c96860f193cecf /src | |
| parent | 22bcd514bc7f1cca2119dc67c8387608a295ee4d (diff) | |
| download | emacs-e2d8a6f0a229b4ebe26484b892ec4f14888f58b6.tar.gz emacs-e2d8a6f0a229b4ebe26484b892ec4f14888f58b6.zip | |
Attempt to resolve gettimeofday compilation errors with MinGW64.
src/w32.c (gettimeofday): Make the signature identical to prototype
in nt/inc/sys/time.h.
nt/inc/sys/time.h (struct timeval): Remove the _W64 guards.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/w32.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2b719b068ae..a1aa4efcc86 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-06-03 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32.c (gettimeofday): Make the signature identical to prototype | ||
| 4 | in nt/inc/sys/time.h. | ||
| 5 | |||
| 1 | 2013-06-03 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2013-06-03 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * eval.c (backtrace_p, backtrace_top, backtrace_next): Export them to | 8 | * eval.c (backtrace_p, backtrace_top, backtrace_next): Export them to |
| @@ -2452,7 +2452,7 @@ get_emacs_configuration_options (void) | |||
| 2452 | 2452 | ||
| 2453 | /* Emulate gettimeofday (Ulrich Leodolter, 1/11/95). */ | 2453 | /* Emulate gettimeofday (Ulrich Leodolter, 1/11/95). */ |
| 2454 | int | 2454 | int |
| 2455 | gettimeofday (struct timeval *restrict tv, struct timezone *restrict tz) | 2455 | gettimeofday (struct timeval *__restrict tv, struct timezone *__restrict tz) |
| 2456 | { | 2456 | { |
| 2457 | struct _timeb tb; | 2457 | struct _timeb tb; |
| 2458 | _ftime (&tb); | 2458 | _ftime (&tb); |