I have a project built in linux that I am trying to port over to a windows vista machine. The socket libraries from unix <sys/socket.h>, <netinet/in.h>, <arpa/inet.h> obviously don't compile in a windows environment. I tried to use Services for Unix but it said my machine wasn't supported (but through my research I found that Vista Enterprise is supported).
My question is this, is winsocket close enough to these libraries to provide a quick fix that will allow it to compile (I would like for it to compile in VS2008)? Also, what would be the best way to write a layer to determine the OS of the system and to compile with different libraries based on the OS? Is there a way to do this in a makefile? $OSTYPE is a bash command, so I don't think thats an option, is it?
Thanks
My question is this, is winsocket close enough to these libraries to provide a quick fix that will allow it to compile (I would like for it to compile in VS2008)? Also, what would be the best way to write a layer to determine the OS of the system and to compile with different libraries based on the OS? Is there a way to do this in a makefile? $OSTYPE is a bash command, so I don't think thats an option, is it?
Thanks