]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
#ifdef EPROTO/#endif
authorMark Andrews <marka@isc.org>
Fri, 18 Jul 2008 03:45:55 +0000 (03:45 +0000)
committerMark Andrews <marka@isc.org>
Fri, 18 Jul 2008 03:45:55 +0000 (03:45 +0000)
lib/isc/unix/socket.c

index b517024aba982c2e0b9d758acc928936c80e8a51..80a58b5d053dcbaa2353fed2c48b7bc45d059cd6 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: socket.c,v 1.288 2008/07/18 02:43:31 jinmei Exp $ */
+/* $Id: socket.c,v 1.289 2008/07/18 03:45:55 marka Exp $ */
 
 /*! \file */
 
@@ -1301,7 +1301,9 @@ doio_recv(isc_socket_t *sock, isc_socketevent_t *dev) {
                 * HPUX returns EPROTO and EINVAL on receiving some ICMP/ICMPv6
                 * errors.
                 */
+#ifdef EPROTO
                SOFT_OR_HARD(EPROTO, ISC_R_HOSTUNREACH);
+#endif
                SOFT_OR_HARD(EINVAL, ISC_R_HOSTUNREACH);
 
 #undef SOFT_OR_HARD