chiark / gitweb /
sys.lisp: Use OS:UNAME rather than UNIX:GET-HOST-NAME in CLisp.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 22 Apr 2012 17:55:48 +0000 (18:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 22 Apr 2012 17:55:48 +0000 (18:55 +0100)
The latter appears to have been withdrawn in later versions of CLisp.

sys.lisp

index 9f900f7..bcc8433 100644 (file)
--- a/sys.lisp
+++ b/sys.lisp
@@ -42,7 +42,7 @@ (defun gethostname ()
   (sb-unix:unix-gethostname)
 
   #+clisp
-  (unix:get-host-name)
+  (os:uname-nodename (os:uname))
 
   #+ecl
   (cffi:with-foreign-pointer-as-string (buffer 256 len)