diff --git a/src/code/debug-int.lisp b/src/code/debug-int.lisp
index 32977253b4c58f01a7e9cf858f13f3a2f2707578..6e5d63ba41645337f3a09928cc4f7a8be23f3f69 100644
--- a/src/code/debug-int.lisp
+++ b/src/code/debug-int.lisp
@@ -1180,7 +1180,7 @@
 	      frame)))))
 
 
-#+(or sparc (and x86 darwin) (and (or x86 amd64) linux))
+#+(or sparc (and x86 (or darwin solaris netbsd)) (and (or x86 amd64) linux))
 (defun find-foreign-function-name (address)
   "Return a string describing the foreign function near ADDRESS"
   (let ((addr (sys:sap-int address)))
@@ -1203,7 +1203,7 @@
 		       (alien:slot info 'filename)
 		       )))))))
 
-#-(or sparc (and x86 darwin) (and (or x86 amd64) linux))
+#-(or sparc (and x86 (or darwin solaris netbsd)) (and (or x86 amd64) linux))
 (defun find-foreign-function-name (ra)
   (declare (ignore ra))
   "Foreign function call land")