I searched around and all I could find was that I needed Cygwin. I installed it but I can't seem to find unistd.h anywhere in C:\cygwin64\usr\include
. Of course, I added that path to the "Include Directories" in my Project in VS2015.
What I want to do is be able to use fork()
and execv()
(or maybe execl()
, execlp()
, execvp()
etc...) in C. I know the easy solution is just "Go do it in Linux" but VS2015 makes it easier to code correctly.
What I think I should do is, I should install something else from Cygwin which would include the headers I need, I just don't know how and where to find them, so I'm asking your help.