diff -r 509c0e9a6b47 -r c27cf95dd7e6 jdk/src/java.base/unix/native/libnet/Inet4AddressImpl.c --- a/jdk/src/java.base/unix/native/libnet/Inet4AddressImpl.c Mon Oct 10 13:28:44 2016 -0700 +++ b/jdk/src/java.base/unix/native/libnet/Inet4AddressImpl.c Mon Oct 10 22:42:45 2016 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2016, 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 @@ -788,9 +788,9 @@ case ENETUNREACH: /* Network Unreachable */ case EAFNOSUPPORT: /* Address Family not supported */ case EADDRNOTAVAIL: /* address is not available on the remote machine */ -#ifdef __linux__ +#if defined(__linux__) || defined(_AIX) case EINVAL: - case EHOSTUNREACH: + case EHOSTUNREACH: /* No route to host */ /* * On some Linux versions, when a socket is bound to the loopback * interface, connect will fail and errno will be set to EINVAL