jdk14 on -current
Greg Lewis
glewis at misty.eyesbeyond.com
Sat Aug 23 22:42:05 PDT 2003
On Sun, Aug 24, 2003 at 01:51:39PM +0900, Yamada Ken Takeshi wrote:
> One more!
> I needed the below, too.
>
> j2se/src/solaris/native/java/net/Inet6AddressImpl.c
> : : : :
> #ifndef __GLIBC__
> /* gethostname() is in libc.so but I can't find a header file for it */
> /***** /usr/include/unistd.h : 407 *******/
> extern int gethostname(char *buf, size_t buf_len);
> ^^^^^^
> #endif
This is also fixed in CVS. However that fix requires a bit more work. Try
the attached patch for a quick fix.
--
Greg Lewis Email : glewis at eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis at FreeBSD.org
-------------- next part --------------
--- j2se/src/solaris/native/java/net/Inet6AddressImpl.c.orig Sat Aug 23 23:44:36 2003
+++ j2se/src/solaris/native/java/net/Inet6AddressImpl.c Sat Aug 23 23:45:08 2003
@@ -14,6 +14,7 @@
#include <strings.h>
#include <stdlib.h>
#include <ctype.h>
+#include <unistd.h>
#include "jvm.h"
#include "jni_util.h"
@@ -26,7 +27,7 @@
#define NI_MAXHOST 1025
#endif
-#ifndef __GLIBC__
+#if !defined(__GLIBC__) && !defined(__FreeBSD__)
/* gethostname() is in libc.so but I can't find a header file for it */
extern int gethostname(char *buf, int buf_len);
#endif
More information about the freebsd-java
mailing list