From 2681c49ada5679922f949e9c7d0010f2ee705dab Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Mon, 28 Feb 2011 14:03:46 -0600 Subject: [PATCH] Revert "LWP: remove ucontext header from preempt module" This reverts commit fbac809a46376fcf60d3dcedc0be962c43d9c74e. The ucontext header is only included in lwp.h for platforms that use ucontext as a means for context-switching in LWP. The preempt module needs the ucontext header for signal handling on some platforms (at least Solaris). So, ucontext.h may not be included by lwp.h on these platforms, if that platform does not use ucontext for LWP context-switching. So we need to explicitly include ucontext.h in preempt.c. Change-Id: Ie08f20c7375d6ff1b185f64da70c983dbe19ac47 Reviewed-on: http://gerrit.openafs.org/4095 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/lwp/preempt.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/lwp/preempt.c b/src/lwp/preempt.c index c8dca46..0ca9b5f 100644 --- a/src/lwp/preempt.c +++ b/src/lwp/preempt.c @@ -40,6 +40,9 @@ PRE_EndPreempt(void) #else #include #include +#ifdef HAVE_UCONTEXT_H +#include +#endif #if defined(AFS_OSF_ENV) || defined(AFS_S390_LINUX20_ENV) int PRE_Block = 0; /* used in lwp.c and process.s */ -- 1.7.1