Skip to content

Commit

Permalink
stub out more types/funcs to compile against golang.org/x/net/interna…
Browse files Browse the repository at this point in the history
…l/socket (#4037)

* stub out more types/funcs to compile against golang.org/x/net/internal/socket

These are changes need to compile github.com/domainr/dnsr/ with TinyGo.
See issue tinygo-org/net#14.

These change are mostly to fix missing symbols in src/crypto/tls and
src/net.  Missing types and functions are cut-and-pasted from go1.21.4.
Functions are stubbed out returning errors.New("not implemented").

DNRS is compiled by running tinygo test:

   sfeldma@nuc:~/work/dnsr$ tinygo test -target=wasi

With this patch, and a corresponding patch for tinygo-org/net to fixup
src/net, you should get a clean compile.
  • Loading branch information
scottfeldman authored Dec 17, 2023
1 parent 731bd5c commit a511f18
Show file tree
Hide file tree
Showing 4 changed files with 531 additions and 4 deletions.
Loading

0 comments on commit a511f18

Please sign in to comment.