Il giorno mer, 11/04/2007 alle 00.43 +0200, Mario Torre ha scritto: > I don't know if it help, but could you try the attached patch?
Ehm... this patch, I mean [1]... > notte! :) Right... needed...! Mario [1] I got this from the Solaris 10 manpage, so I don't know if it apply to IRIX too: "The gethostent() and gethostent_r() functions each return a pointer to a struct hostent if they successfully enumerate an entry; otherwise they return NULL, indicating the end of the enumeration... When the pointer returned by the reentrant functions gethostbyname_r(), gethostbyaddr_r(), and gethostent_r() is not NULL, it is always equal to the result pointer that was supplied by the caller." See why I like to work on Classpath? -- Lima Software - http://www.limasoftware.net/ GNU Classpath Developer - http://www.classpath.org/ Jabber: [EMAIL PROTECTED] - Profile: http://www.gtalkprofile.com/profile/9661.html pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF Please, support open standards: http://opendocumentfellowship.org/petition/ http://www.nosoftwarepatents.com/
### Eclipse Workspace Patch 1.0 #P classpath Index: native/jni/native-lib/cpnet.c =================================================================== RCS file: /cvsroot/classpath/classpath/native/jni/native-lib/cpnet.c,v retrieving revision 1.6 diff -u -r1.6 cpnet.c --- native/jni/native-lib/cpnet.c 20 Jan 2007 03:24:19 -0000 1.6 +++ native/jni/native-lib/cpnet.c 10 Apr 2007 22:54:38 -0000 @@ -636,7 +636,14 @@ { buf = (char *)JCL_malloc(env, buflen); #ifdef HAVE_GETHOSTBYNAME_R + +# if defined(__sgi) + if (gethostbyname_r(hostname, &hret, buf, buflen, &result, &herr) == NULL) + ret = -1; +# else ret = gethostbyname_r (hostname, &hret, buf, buflen, &result, &herr); +# endif /* defined(__sgi) */ + #else hret.h_addr_list = NULL; hret.h_addrtype = 0;