]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: added missing includes for errno.h to the windows gcc stubs.
authorAli Rizvi-Santiago <arizvisa@gmail.com>
Mon, 12 Nov 2018 21:54:16 +0000 (21:54 +0000)
committerIan Lance Taylor <iant@golang.org>
Mon, 12 Nov 2018 23:05:28 +0000 (23:05 +0000)
commit595bc63e8fb9636bb89c0cff3f879467d3c06988
tree77d2cdb369042c9ddc19316474037fdff5d5702c
parent5cf2b4c2d39e0490b235822f5ea7fa105280b9f2
runtime/cgo: added missing includes for errno.h to the windows gcc stubs.

This adds the includes for errno.h to the windows stubs
for runtime/cgo so that "errno" is properly declared.

Due to "errno" not being properly declared, the compiler is
forced to assume it's an external which leaves it up to the
linker. This is an issue in some implementations as errno
might be a macro which results in an unresolved symbol error
during linking.

runtime/cgo/gcc_libinit_windows.c: added include
runtime/cgo/gcc_windows_386.c: added include
runtime/cgo/gcc_windows_amd64.c: added include

Change-Id: I77167d02f7409462979135efc55cf50bbc6bd363
GitHub-Last-Rev: 90da06ee3cbec3f51c6d31185868bb70341ce9d3
GitHub-Pull-Request: golang/go#28747
Reviewed-on: https://go-review.googlesource.com/c/149118
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/cgo/gcc_libinit_windows.c
src/runtime/cgo/gcc_windows_386.c
src/runtime/cgo/gcc_windows_amd64.c