mirror of
https://github.com/tinygo-org/net.git
synced 2026-08-20 04:19:01 +00:00
move syscall constants for networking into net space to avoid windows build issue
This commit is contained in:
committed by
deadprogram
parent
d939a800a7
commit
2d46776c18
+1
-2
@@ -12,7 +12,6 @@ import (
|
||||
"internal/itoa"
|
||||
"io"
|
||||
"strconv"
|
||||
"syscall"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -58,7 +57,7 @@ func DialTLS(addr string) (*TLSConn, error) {
|
||||
port = 443
|
||||
}
|
||||
|
||||
fd, err := netdev.Socket(syscall.AF_INET, syscall.SOCK_STREAM, IPPROTO_TLS)
|
||||
fd, err := netdev.Socket(AF_INET, SOCK_STREAM, IPPROTO_TLS)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user