chiark / gitweb /
Attempt to port the lot to CLisp.
[zone] / net.lisp
index 35e43404cb733c0057947ae40d56b527b044100c..d957f53d684a00fd3611f689c96695b89f5224bc 100644 (file)
--- a/net.lisp
+++ b/net.lisp
@@ -256,19 +256,20 @@ (defun ipnet-changeable-bytes (mask)
 ;;;--------------------------------------------------------------------------
 ;;; Name resolution.
 
-#+cmu
 (defun resolve-hostname (name)
   "Resolve a hostname to an IP address using the DNS, or return nil."
-  (let ((he (ext:lookup-host-entry name)))
-    (and he
-        (ext:host-entry-addr he))))
+  #+cmu (let ((he (ext:lookup-host-entry name)))
+         (and he
+              (ext:host-entry-addr he)))
+  #-cmu nil
+)
 
-#+cmu
 (defun canonify-hostname (name)
   "Resolve a hostname to canonical form using the DNS, or return nil."
-  (let ((he (ext:lookup-host-entry name)))
-    (and he
-        (ext:host-entry-name he))))
+  #+cmu (let ((he (ext:lookup-host-entry name)))
+         (and he
+              (ext:host-entry-name he)))
+  #-cmu nil)
 
 ;;;--------------------------------------------------------------------------
 ;;; Host names and specifiers.