Skip to content
Snippets Groups Projects
Commit 08f7f18a authored by rtoy's avatar rtoy
Browse files

Minor tweak to aid cross-compile from systems that don't have

UNIX-SYSINFO.
parent 1df6ba74
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain. ;;; Carnegie Mellon University, and has been placed in the public domain.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/sparc-svr4-vm.lisp,v 1.10 2008/04/22 20:18:01 rtoy Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/sparc-svr4-vm.lisp,v 1.11 2008/09/16 19:19:53 rtoy Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -134,11 +134,19 @@ ...@@ -134,11 +134,19 @@
(defun machine-type () (defun machine-type ()
"Returns a string describing the type of the local machine." "Returns a string describing the type of the local machine."
(unix:unix-sysinfo unix:si-machine)) ;; Helps cross-compile from a different system that might not have
;; unix:unix-sysinfo.
(if (fboundp (find-symbol "UNIX-SYSINFO" "UNIX"))
(funcall (find-symbol "UNIX-SYSINFO" "UNIX")
(symbol-value (find-symbol "SI-MACHINE" "UNIX")))
"sun4"))
(defun machine-version () (defun machine-version ()
"Returns a string describing the version of the local machine." "Returns a string describing the version of the local machine."
(unix:unix-sysinfo unix:si-platform)) (if (fboundp (find-symbol "UNIX-SYSINFO" "UNIX"))
(funcall (find-symbol "UNIX-SYSINFO" "UNIX")
(symbol-value (find-symbol "SI-PLATFORM" "UNIX")))
"unknown"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment