w32: Change the condition for struct timespec.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 20 Apr 2017 07:31:27 +0000 (16:31 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 20 Apr 2017 07:31:27 +0000 (16:31 +0900)
* w32/npth.h: Fix the ifdef case.

--

GnuPG-bug-id: 2202
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
w32/npth.h

index b2e64dd..dfe9e88 100644 (file)
@@ -47,14 +47,14 @@ extern "C" {
 
 struct msghdr;
 
-/* At least with version 2 the mingw-w64 headers define timespec.  For
-   older compilers we keep our replacement.  */
-#if __MINGW64_VERSION_MAJOR < 2
+/* The mingw-w64 headers define timespec.  For older compilers we keep
+   our replacement.  */
+#ifndef __MINGW64_VERSION_MAJOR
 struct timespec {
   long tv_sec;                 /* seconds */
   long tv_nsec;                /* nanoseconds */
 };
-#endif /*__MINGW64_VERSION_MAJOR < 2*/
+#endif /*__MINGW64_VERSION_MAJOR */
 
 
 #ifndef ETIMEDOUT