--- old/src/jdk.jdwp.agent/unix/native/libdt_socket/socket_md.c 2018-01-29 07:30:55.822126902 -0500 +++ new/src/jdk.jdwp.agent/unix/native/libdt_socket/socket_md.c 2018-01-29 07:30:55.431104137 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -126,9 +126,11 @@ return rv; } -struct hostent * -dbgsysGetHostByName(char *hostname) { - return gethostbyname(hostname); +int +dbgsysGetAddrInfo(char *hostname, char *service, + struct addrinfo *hints, + struct addrinfo **results) { + return getaddrinfo(hostname, service, hints, results); } unsigned short