Commit aa83b5ec authored by Eli Zaretskii's avatar Eli Zaretskii

Adapt 'struct timespec' to next release of MinGW runtime

* nt/inc/ms-w32.h (struct timespec): Don't declare if
__struct_timespec_defined is defined.
parent 4b7c816e
......@@ -310,7 +310,10 @@ int _getpid (void);
elsewhere, but we don't use lib/time.h where the structure is
defined. */
/* MinGW64 defines 'struct timespec' and _TIMESPEC_DEFINED in sys/types.h. */
/*'s MinGW runtime versions 3.22 and upward define 'struct
timespec' and __struct_timespec_defined in parts/time.h, which is
included by time.h. */
#if !defined (_TIMESPEC_DEFINED) && !defined (__struct_timespec_defined)
struct timespec
time_t tv_sec; /* seconds */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment