From 9f1f248d53e2a6a9af3784f49ac9f0ab6ec1a414 Mon Sep 17 00:00:00 2001 From: Juho Snellman Date: Mon, 2 Jun 2008 03:07:57 +0000 Subject: [PATCH] 1.0.17.16: Stop using EAI_NODATA * EAI_NODATA is deprecated since RFC 3493, and has now been removed from glibc headers. Stop using it in sb-bsd-sockets. Fixes Fedora Core 9 build. --- NEWS | 2 ++ contrib/sb-bsd-sockets/constants.lisp | 2 -- contrib/sb-bsd-sockets/name-service.lisp | 7 +++++-- version.lisp-expr | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index bd42cde..e39f594 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,8 @@ changes in sbcl-1.0.18 relative to 1.0.17: as well.) * optimization: simple uses of HANDLER-CASE and HANDLER-BIND no longer cons. + * bug fix: EAI_NODATA is deprecated since RFC 3493. Stop using it + in sb-bsd-sockets. changes in sbcl-1.0.17 relative to 1.0.16: * temporary regression: user code can no longer allocate closure diff --git a/contrib/sb-bsd-sockets/constants.lisp b/contrib/sb-bsd-sockets/constants.lisp index cf0be5b..bf47d1d 100644 --- a/contrib/sb-bsd-sockets/constants.lisp +++ b/contrib/sb-bsd-sockets/constants.lisp @@ -288,8 +288,6 @@ (:integer EAI-SERVICE "EAI_SERVICE") #-freebsd (:integer EAI-ADDRFAMILY "EAI_ADDRFAMILY") - #-freebsd - (:integer EAI-NODATA "EAI_NODATA") (:integer EAI-MEMORY "EAI_MEMORY") (:integer EAI-FAIL "EAI_FAIL") (:integer EAI-AGAIN "EAI_AGAIN") diff --git a/contrib/sb-bsd-sockets/name-service.lisp b/contrib/sb-bsd-sockets/name-service.lisp index 3b2d576..bf8b17e 100644 --- a/contrib/sb-bsd-sockets/name-service.lisp +++ b/contrib/sb-bsd-sockets/name-service.lisp @@ -230,8 +230,11 @@ GET-NAME-SERVICE-ERRNO") sockint::EAI-FAIL no-recovery-error) (define-name-service-condition - sockint::NO-ADDRESS ;; Also defined as NO-DATA, with the same value - #-freebsd sockint::EAI-NODATA #+freebsd nil + ;; Also defined as NO-DATA, with the same value + sockint::NO-ADDRESS + ;; getaddrinfo() as of RFC 3493 can no longer distinguish between + ;; host no found and address not found + nil no-address-error) (defun condition-for-name-service-errno (err) diff --git a/version.lisp-expr b/version.lisp-expr index 1b244ad..9355972 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"1.0.17.15" +"1.0.17.16" -- 1.7.10.4