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 /nt | |
| 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 'nt')
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rw-r--r-- | nt/inc/sys/time.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index 646b472ba73..b5322f51030 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-06-03 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * inc/sys/time.h (struct timeval): Remove the _W64 guards. | ||
| 4 | |||
| 1 | 2013-06-01 Eli Zaretskii <eliz@gnu.org> | 5 | 2013-06-01 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * inc/sys/time.h [!_TIMEZONE_DEFINED]: Define _TIMEZONE_DEFINED to | 7 | * inc/sys/time.h [!_TIMEZONE_DEFINED]: Define _TIMEZONE_DEFINED to |
diff --git a/nt/inc/sys/time.h b/nt/inc/sys/time.h index 308748437d4..f8fb022d221 100644 --- a/nt/inc/sys/time.h +++ b/nt/inc/sys/time.h | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | 8 | ||
| 9 | /* The guards are for MinGW64, which defines these structs on its | 9 | /* The guards are for MinGW64, which defines these structs on its |
| 10 | system headers which are included by ms-w32.h. */ | 10 | system headers which are included by ms-w32.h. */ |
| 11 | #ifndef _W64 | ||
| 12 | /* Allow inclusion of sys/time.h and winsock2.h in any order. Needed | 11 | /* Allow inclusion of sys/time.h and winsock2.h in any order. Needed |
| 13 | for running the configure test, which is only relevant to MinGW. */ | 12 | for running the configure test, which is only relevant to MinGW. */ |
| 14 | #ifndef _TIMEVAL_DEFINED | 13 | #ifndef _TIMEVAL_DEFINED |
| @@ -25,7 +24,6 @@ struct timeval | |||
| 25 | ((tvp)->tv_usec cmp (uvp)->tv_usec)) | 24 | ((tvp)->tv_usec cmp (uvp)->tv_usec)) |
| 26 | #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 | 25 | #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 |
| 27 | #endif /* _TIMEVAL_DEFINED */ | 26 | #endif /* _TIMEVAL_DEFINED */ |
| 28 | #endif /* _W64 */ | ||
| 29 | 27 | ||
| 30 | #ifndef _TIMEZONE_DEFINED | 28 | #ifndef _TIMEZONE_DEFINED |
| 31 | #define _TIMEZONE_DEFINED | 29 | #define _TIMEZONE_DEFINED |