Skip to content

BSD Support#157

Closed
IoIxD wants to merge 1 commit intomicrosoft:mainfrom
IoIxD:main
Closed

BSD Support#157
IoIxD wants to merge 1 commit intomicrosoft:mainfrom
IoIxD:main

Conversation

@IoIxD
Copy link

@IoIxD IoIxD commented May 20, 2025

Contrary to popular belief, Linux != Unix! And I assume the intention wasn't to support BSD either way, however the code is so close to supporting it that I think it justifies this PR anyways. The only problem with compiling is that __errno_location() is a Linux-ism, whereas __errno() is the Unix method.

For me, it does not cross compile from Linux to Unix because it tries to link against -lexecinfo, which is missing. I didn't bother to try to fix this, I just set up a NetBSD VM to get this working (this is for a friend :P). Should you do this as well, note that program runs into a memory protection feature of NetBSD when it tries to call mprotect, and I had to run /usr/sbin/paxctl +m target/release/edit to disable it for the program.

Edited with the program itself; the lack of an LSP or anything definitely lead to some syntax issues, and I apologize.

@IoIxD
Copy link
Author

IoIxD commented May 20, 2025

@microsoft-github-policy-service agree

@IoIxD
Copy link
Author

IoIxD commented May 20, 2025

@microsoft-github-policy-service agree

@microsoft-github-policy-service agree

@IoIxD
Copy link
Author

IoIxD commented May 20, 2025

Oh ok somebody else did this... oops... #72

@IoIxD IoIxD closed this May 20, 2025
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.

1 participant