From c8fedad1fe873eeb483868ec75d292973071f33d Mon Sep 17 00:00:00 2001 From: Stas Boukarev Date: Fri, 4 Jan 2013 16:59:01 +0400 Subject: [PATCH] sb-sprof: Define pthread-kill only on +sb-thread. pthread_kill alien is not present on -sb-thread, because libpthread is not loaded, and it results in unnecessary style warnings. --- contrib/sb-sprof/sb-sprof.lisp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/sb-sprof/sb-sprof.lisp b/contrib/sb-sprof/sb-sprof.lisp index 0d81649..9a4b474 100644 --- a/contrib/sb-sprof/sb-sprof.lisp +++ b/contrib/sb-sprof/sb-sprof.lisp @@ -506,8 +506,10 @@ profiling") ;; Ensure that only one thread at a time will be doing profiling stuff. (defvar *profiler-lock* (sb-thread:make-mutex :name "Statistical Profiler")) (defvar *distribution-lock* (sb-thread:make-mutex :name "Wallclock profiling lock")) - + + #+sb-thread (declaim (inline pthread-kill)) + #+sb-thread (define-alien-routine pthread-kill int (os-thread unsigned-long) (signal int)) ;;; A random thread will call this in response to either a timer firing, -- 1.7.10.4