base: Fix ucontext compilation error for macOS
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 17 Jul 2018 09:42:06 +0000 (10:42 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 26 Jul 2018 07:00:34 +0000 (07:00 +0000)
commit25f467ed78f7bf4a4523969b7e35ae770340bb94
treeac960595426a46168c56a6b477fcf845954cbb89
parent045c484e0d69b5601b1681683fe3ba2d04b05bb6
base: Fix ucontext compilation error for macOS

ucontext functions (like getcontext, setcontext etc) have been marked
as deprecated and are hence hidden in latest macOS releases.
This patch uncovers them; warnings wil be produced but compilation
won't fail since -Wno-error=deprecated-declarations flag is currently
used.

Change-Id: Ic10e6f77a38875828b1891eaed2f0626ecffff67
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/11729
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/base/fiber.hh