There is no unistd.h on windows, as the name would imply. I assume it is included for gethostname only.