; presently always AF_INET
(addresses :initarg :addresses :accessor host-ent-addresses)))
+(defgeneric host-ent-address (host-ent))
+
(defmethod host-ent-address ((host-ent host-ent))
(car (host-ent-addresses host-ent)))
(loop for i from 0 to 3
do (setf (sockint::in-addr-addr packed-addr i) (elt address i)))
(make-host-ent
- (sb-sys:without-gcing
+ (sb-sys:with-pinned-objects (packed-addr)
(sockint::gethostbyaddr (sockint::array-data-address packed-addr)
4
sockint::af-inet)))))
(sb-alien:alien-funcall
(sb-alien:extern-alien "get_h_errno" (function integer)))))
-#-solaris
+#-(and cmu solaris)
(progn
#+sbcl
(sb-alien:define-alien-routine "hstrerror"