an******@gmail.com wrote:
I need to port some C code from UNIX SGI to Windows (MS VC++ compiler).
The following header files arent available in windows:
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <netdb.h>
#include <arpa/inet.h>
Does anyone have any suggestions on how to get windows versions of
these? Thanks!
Those headers are not available in standard C, as discussed here.
Your code is not portable. What you need is the appropriate
libraries and their header files, not just the headers. For that
go to a group covering your peculiar system. It may well have
Microsoft in its name.
You will probably be better off avoiding windoze entirely and
switching to a linux system. Certainly cheaper and more reliable.
--
'If you want to post a followup via groups.google.com, don't use
the broken 'Reply' link at the bottom of the article. Click on
'show options' at the top of the article, then click on the
'Reply' at the bottom of the article headers.' - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>