Skip to content
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

Open
Username-Username007 opened this issue Mar 27, 2023 · 3 comments
Open

Usage on Windows #60

Username-Username007 opened this issue Mar 27, 2023 · 3 comments

Comments

@Username-Username007
Copy link

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)

@Rt39
Copy link

Rt39 commented Nov 13, 2023

Is there any progress to this issue? I still cannot use it on Windows

@Rt39
Copy link

Rt39 commented Nov 13, 2023

May I make a pull request according to your advice and make it fit to MSVC?

@Username-Username007
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants