-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add/Verify Windows/OSX support #1
Comments
The net2-rs crate creates (then drops) a UDP socket on a high port, so Rust initialises the Windows socket library. I should probably do something similar. From what I can see, OSX should just work if unix does (besides res_init not being thread-safe in OSX). |
It doesn't seem to work on my OSX laptop. Building gives these errors (and many more along the same lines):
|
Interesting, I didn't realise the libc bindings were so variable. I'll remove the uncommon ones and rely on Other for those then. Edit: And somehow it took me this long to realise that |
I've pushed a fix for this, give it a go. |
@NfNitLoop Could you give this another try on OSX? A |
Many fewer errors now:
|
that was on this version, btw:
|
Thanks for that I appreciate the help. While I'm heading in the right direction, it's obvious that I should get access get access to test systems for OSX and windows. |
Commenting out lines 79, 99, and 114 of These changes allow the library to build on OS X, haven't done much testing yet but I'll try to get some in tomorrow. |
I just pushed a new version that does away with the enums in |
This is now building on all platforms, and travis/appveyor are now tracking OSX and Windows support going forward. |
Move from winapi to windows-sys
The init function is private, and seems to initialise data for Windows (src/libstd/sys/windows/net.rs). This, and more, may be required for full Window support.
OSX support is unknown.
The text was updated successfully, but these errors were encountered: