diff options
author | 2003-08-01 19:50:23 +0000 | |
---|---|---|
committer | 2003-08-01 19:50:23 +0000 | |
commit | 8f3f753f579262106607cfa2667bfef7fe7343df (patch) | |
tree | 3076379321fc6e3ba52f3ed597c87d2f002eae66 /lib/libpthread/uthread | |
parent | sync (diff) | |
download | wireguard-openbsd-8f3f753f579262106607cfa2667bfef7fe7343df.tar.xz wireguard-openbsd-8f3f753f579262106607cfa2667bfef7fe7343df.zip |
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')
-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 |