[kaffe] CVS kaffe (stack): Fix compile error for ipv6 stuff

Kaffe CVS Kaffe Mailing List <kaffe@kaffe.org>
Thu Sep 18 08:29:02 2003


PatchSet 4045 
Date: 2003/09/18 15:26:53
Author: stack
Branch: HEAD
Tag: (none) 
Log:
Fix compile error for ipv6 stuff

Members: 
	ChangeLog:1.1641->1.1642 
	libraries/clib/net/NetworkInterface.c:1.5->1.6 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1641 kaffe/ChangeLog:1.1642
--- kaffe/ChangeLog:1.1641	Wed Sep 17 21:14:07 2003
+++ kaffe/ChangeLog	Thu Sep 18 15:26:53 2003
@@ -1,3 +1,8 @@
+2003-09-18  Timothy S. Stack <stack@cs.utah.edu>
+
+	* libraries/clib/net/NetworkInterface.c:
+	Fix compile error for IPv6 stuff.
+	
 2003-09-17  Timothy S. Stack <stack@cs.utah.edu>
 
 	* kaffe/kaffevm/jit3/labels.c,
Index: kaffe/libraries/clib/net/NetworkInterface.c
diff -u kaffe/libraries/clib/net/NetworkInterface.c:1.5 kaffe/libraries/clib/net/NetworkInterface.c:1.6
--- kaffe/libraries/clib/net/NetworkInterface.c:1.5	Fri Sep  5 17:56:53 2003
+++ kaffe/libraries/clib/net/NetworkInterface.c	Thu Sep 18 15:26:55 2003
@@ -2,7 +2,7 @@
  * NetworkInterface.c
  * Native implementation of java.net.NetworkInterface functions.
  *
- * Copyright (c) 2002 University of Utah and the Flux Group.
+ * Copyright (c) 2002, 2003 University of Utah and the Flux Group.
  * All rights reserved.
  *
  * This file is licensed under the terms of the GNU Public License.
@@ -98,13 +98,14 @@
 			NII_MAX_ADDRESS_SIZE);
 	      address_string = checkPtr(stringC2Java(addr));
 	      break;
-#if defined(AF_INET6)
+#if defined(HAVE_STRUCT_SOCKADDR_IN6)
 	    case AF_INET6:
 	      inet_ntop(sa->sa_family,
 			&((struct sockaddr_in6 *)sa)->sin6_addr,
 			addr,
 			NII_MAX_ADDRESS_SIZE);
 	      address_string = checkPtr(stringC2Java(addr));
+	      break;
 #endif
 	    default:
 	      /* XXX What to do? */