earlybrowserreborn - Diff between revs 1 and 2

Subversion Repositories:
Rev:
Show entire file - Ignore whitespace
Rev 1 Rev 2
Line 35... Line 35...
35 **      global errno    gives the error number in the unix way. 35 **      global errno    gives the error number in the unix way.
36 ** 36 **
37 ** On return, 37 ** On return,
38 **      returns         a negative status in the unix way. 38 **      returns         a negative status in the unix way.
39 */ 39 */
-   40 #define THINK_C
40 #ifndef PCNFS 41 #ifndef PCNFS
41 #ifdef vms 42 #ifdef vms
42 extern int uerrno;      /* Deposit of error info (as perr errno.h) */ 43 extern int uerrno;      /* Deposit of error info (as perr errno.h) */
43 extern int vmserrno;    /* Deposit of VMS error info */ 44 extern int vmserrno;    /* Deposit of VMS error info */
44 extern volatile noshare int errno;  /* noshare to avoid PSECT conflict */ 45 extern volatile noshare int errno;  /* noshare to avoid PSECT conflict */
Line 221... Line 222...
221 222
222     } else {                /* Alphanumeric node name: */ 223     } else {                /* Alphanumeric node name: */
223 #ifdef MVS      /* Oustanding problem with crsh in MVS gethostbyname */ 224 #ifdef MVS      /* Oustanding problem with crsh in MVS gethostbyname */
224         if(TRACE)printf("HTTCP: Calling gethostbyname(%s)\n", host); 225         if(TRACE)printf("HTTCP: Calling gethostbyname(%s)\n", host);
225 #endif 226 #endif
226         phost=gethostbyname(host);      /* See netdb.h */ -  
-   227         phost=gethostbyname2(host,AF_INET);     /* See netdb.h */
227 #ifdef MVS 228 #ifdef MVS
228         if(TRACE)printf("HTTCP: gethostbyname() returned %d\n", phost); 229         if(TRACE)printf("HTTCP: gethostbyname() returned %d\n", phost);
229 #endif 230 #endif
230         if (!phost) { 231         if (!phost) {
231             if (TRACE) printf( 232             if (TRACE) printf(