-#ifdef MVS /* Oustanding problem with crsh in MVS gethostbyname */
- if(TRACE)printf("HTTCP: Calling gethostbyname(%s)\n", host);
-#endif
- phost=gethostbyname(host); /* See netdb.h */
-#ifdef MVS
- if(TRACE)printf("HTTCP: gethostbyname() returned %d\n", phost);
-#endif
+ printf("HTTCP: Calling gethostbyname2(\"%s\",AF_INET)\n", host);
+ phost=gethostbyname2(host,AF_INET); /* See netdb.h */
+ printf("HTTCP: gethostbyname() returned %d\n", phost);
+ printf("HTTCP: h_errno %d\n",h_errno);