Re: 0.95 branch created

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il giorno mar, 10/04/2007 alle 23.47 +0200, Christian Thalinger ha
scritto:

> >From IRIX's manpage:
> 
> struct hostent *gethostbyname_r(const char *name, struct hostent *hent, char *buffer, int bufsize, int *h_errnop);
> 
> How should we handle that?
> 
> - twisti

Ciao twisti!

I don't know if it help, but could you try the attached patch?

notte! :)
Mario
-- 
Lima Software - http://www.limasoftware.net/
GNU Classpath Developer - http://www.classpath.org/
Jabber: neugens@xxxxxxxxxx - 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:37:00 -0000
@@ -636,7 +636,15 @@
     {
       buf = (char *)JCL_malloc(env, buflen);
 #ifdef HAVE_GETHOSTBYNAME_R
+
+# if defined(__sgi)
+      gethostbyname_r (hostname, &hret, buf, buflen, &result, &herr);
+      if (hret == 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;

[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux