Skip to content

Fix linkname for go 1.23#31

Open
royalcat wants to merge 1 commit intoIceber:mainfrom
royalcat:fix-go123-linkname
Open

Fix linkname for go 1.23#31
royalcat wants to merge 1 commit intoIceber:mainfrom
royalcat:fix-go123-linkname

Conversation

@royalcat
Copy link

@royalcat royalcat commented Sep 25, 2024

In Go 1.23, developers lock down the usage of go:linkname (golang/go#67401) and didn’t include syscall.Sockaddr.sockaddr and syscall.anyToSockaddr as valid linkname targets. This fix replaces the previously linked functions with code from the standard library.

Honestly, I’m not sure if this fix works since Connect and Sendmsg aren’t covered by tests or examples, and I’m don't know how to test them. But I don’t see why it wouldn’t work.

@paulcacheux
Copy link
Contributor

@Iceber do you think you could take a look at this ? This is preventing any usage of this lib when using go 1.23. Thanks a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants