-
Notifications
You must be signed in to change notification settings - Fork 27
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
Usage on Windows #60
Comments
Is there any progress to this issue? I still cannot use it on Windows |
May I make a pull request according to your advice and make it fit to MSVC? |
Sorry, I don't have it now. I remember the effect is not good, so I just abandoned it. My recommendation is, if you can't use it, don't use it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
poll.h and unistd.h is for Unix-like systems and not available on Windows. If you are using VS2019 on windows, you can modify utlis.h:
change #include<poll.h> into #include<winsock2.h>
change #include<unistd.h> into #include<io.h>
change poll into WSAPoll
Since WSAPoll's binary lib is in ws2_32.lib, you'll have to add:
#pragma comment(lib, "ws2_32.lib")
to utlis.h file
my ws2_32.lib is located in "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\WS2_32.Lib" (I'm using x64, select your own architecture)
The text was updated successfully, but these errors were encountered: