Handle unsigned constants for module I/O.
[official-gcc.git] / libgo / go / crypto / tls / handshake_unix_test.go
blobb61e7c24efb2049429a3051dbfc7e7c8d9e924d9
1 // Copyright 2019 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
7 package tls
9 import (
10 "errors"
11 "syscall"
14 func init() {
15 isConnRefused = func(err error) bool {
16 return errors.Is(err, syscall.ECONNREFUSED)