How to include the <sys / select.h> library in a Visual Studio C ++ project?

I start with Visual Studio, and now I want to run a C ++ program on it, but when I compile the program, an error appears that is <sys/select.h>not defined.

So how can I define it or include it in a project?

+3
source share
2 answers

sys/select.h- POSIX header supporting select(); the Win32 equivalent only works on sockets, so it’s unlikely that you will get code running on Windows if you aren’t already able to port.

+6
source

( ) sys - , , . , - , , , sys.

+3

All Articles