Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compile error of connCheck.go #1048

Merged

Conversation

@shogo82148
Copy link
Contributor

@shogo82148 shogo82148 commented Jan 5, 2020

Description

fix compile error of connCheck.go on plan9

ref. #1047 (comment)

$ GOOS=plan9 GOARCH= amd64 go build github.com/go-sql-driver/mysql
# github.com/go-sql-driver/mysql
./conncheck.go:42:15: undefined: syscall.EAGAIN
./conncheck.go:42:40: undefined: syscall.EWOULDBLOCK

Checklist

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary
  • Added myself / the copyright holder to the AUTHORS file
@@ -6,7 +6,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at http://mozilla.org/MPL/2.0/.

// +build !windows,!appengine
// +build linux darwin

This comment has been minimized.

@shogo82148

shogo82148 Jan 5, 2020
Author Contributor

connCheck may work unix-like OSs (e.g. aix, dragonfly, freebsd, netbsd, openbsd, solaris), but I'm not sure.
can anyone check it?

This comment has been minimized.

@julienschmidt

julienschmidt Jan 5, 2020
Member

At least it cross-compiles. I would add them there as well

@methane
Copy link
Member

@methane methane commented Jan 5, 2020

I think we can drop the deprecated "appengine" build tag because we dropped Go 1.9 already.

@shogo82148
Copy link
Contributor Author

@shogo82148 shogo82148 commented Jan 5, 2020

I see
I removed the "appengine" build tag.

@methane
methane approved these changes Jan 5, 2020
@shogo82148 shogo82148 merged commit 8723940 into go-sql-driver:master Jan 5, 2020
3 checks passed
3 checks passed
WIP Ready for review
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage decreased (-0.008%) to 80.566%
Details
@shogo82148 shogo82148 deleted the shogo82148:fix-compile-error-on-plan9 branch Jan 5, 2020
@shogo82148
Copy link
Contributor Author

@shogo82148 shogo82148 commented Jan 5, 2020

merged. thanks!

sthagen added a commit to sthagen/mysql that referenced this pull request Jan 5, 2020
fix compile error of connCheck.go (go-sql-driver#1048)
@julienschmidt julienschmidt added this to the v1.5.0 milestone Jan 5, 2020
@julienschmidt julienschmidt mentioned this pull request Jan 6, 2020
5 of 5 tasks complete
tz70s added a commit to tz70s/mysql that referenced this pull request Sep 5, 2020
* fix compile error of connCheck.go

* remove "appengine" build tag
tz70s added a commit to tz70s/mysql that referenced this pull request Sep 5, 2020
* fix compile error of connCheck.go

* remove "appengine" build tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.