File mpich-hostent.patch of Package mpich

--- mpid/mpd/sockets.c
+++ mpid/mpd/sockets.c
@@ -89,7 +89,7 @@
 	     hostname, port );
 
     bzero((void *)&sa, sizeof(sa));
-    bcopy((void *)hp->h_addr, (void *)&sa.sin_addr, hp->h_length);
+    bcopy((void *)hp->h_addr_list[0], (void *)&sa.sin_addr, hp->h_length);
     sa.sin_family = hp->h_addrtype;
     sa.sin_port	  = htons(port);
 
openSUSE Build Service is sponsored by