]> Cypherpunks repositories - gostls13.git/commitdiff
build: fix for 32-bit windows builds on 64-bit windows system
authorRuss Cox <rsc@golang.org>
Fri, 15 Mar 2013 16:30:14 +0000 (12:30 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 15 Mar 2013 16:30:14 +0000 (12:30 -0400)
Thanks to jon.forums@ for the fix.

Fixes #5051.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/7813045

include/libc.h

index 5fd56b8bfe7da4d3685ceb5a5f155d7eae89cdcf..fab1532f2271aa509402a3193db73371236bb433 100644 (file)
@@ -308,7 +308,7 @@ extern      void    flagprint(int);
 
 #ifdef _WIN32
 
-#ifndef _WIN64
+#if !defined(_WIN64) && !defined(__MINGW64_VERSION_MAJOR)
 struct timespec {
        int tv_sec;
        long tv_nsec;