Revert "LWP: remove ucontext header from preempt module"
authorAndrew Deason <adeason@sinenomine.net>
Mon, 28 Feb 2011 20:03:46 +0000 (14:03 -0600)
committerDerrick Brashear <shadow@dementia.org>
Tue, 1 Mar 2011 00:53:21 +0000 (16:53 -0800)
commit2681c49ada5679922f949e9c7d0010f2ee705dab
tree8cee92dc8cbf158ac9ae90e965205fe4c2cc67d1
parentfbcc8ac2646cf0b4b3de15967e064abfccbd7710
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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/lwp/preempt.c