diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-01 19:50:24 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-01 19:50:24 +0000 |
commit | 813369fe94018e37f3c81e17201f31d20aa7ea82 (patch) | |
tree | 9922e207e799b284ccb72e0ea6d07787b180f05d /lib/libpthread/uthread/pthread_private.h | |
parent | d82fc56ebd39b613f22801a67aab0004d81e037a (diff) |
Go back to using ITIMER_PROF for the non-profiled libpthread and use
ITIMER_VIRTUAL for the profiled version. Fixes problems when programs
linked with libpthread try to use ITIMER_VIRTUAL (and have no way of
knowing that this will cause conflicts with the threads lib).
marc@ OK
Diffstat (limited to 'lib/libpthread/uthread/pthread_private.h')
-rw-r--r-- | lib/libpthread/uthread/pthread_private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/pthread_private.h b/lib/libpthread/uthread/pthread_private.h index 57162bcf744..64d63c436ba 100644 --- a/lib/libpthread/uthread/pthread_private.h +++ b/lib/libpthread/uthread/pthread_private.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_private.h,v 1.47 2003/07/08 00:17:18 marc Exp $ */ +/* $OpenBSD: pthread_private.h,v 1.48 2003/08/01 19:50:23 millert Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>. * All rights reserved. @@ -169,7 +169,7 @@ /* * Define the signals to be used for scheduling. */ -#if defined(_PTHREADS_COMPAT_SCHED) +#if defined(_PTHREADS_COMPAT_SCHED) || defined(PROF) #define _ITIMER_SCHED_TIMER ITIMER_VIRTUAL #define _SCHED_SIGNAL SIGVTALRM #else |