1.0.17.16: Stop using EAI_NODATA
authorJuho Snellman <jsnell@iki.fi>
Mon, 2 Jun 2008 03:07:57 +0000 (03:07 +0000)
committerJuho Snellman <jsnell@iki.fi>
Mon, 2 Jun 2008 03:07:57 +0000 (03:07 +0000)
        * 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
contrib/sb-bsd-sockets/constants.lisp
contrib/sb-bsd-sockets/name-service.lisp
version.lisp-expr

diff --git a/NEWS b/NEWS
index bd42cde..e39f594 100644 (file)
--- 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
index cf0be5b..bf47d1d 100644 (file)
  (: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")
index 3b2d576..bf8b17e 100644 (file)
@@ -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)
index 1b244ad..9355972 100644 (file)
@@ -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"