summaryrefslogtreecommitdiffstats
path: root/lib/libthread_db
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2013-07-12 14:24:52 +0000
committermarius <marius@FreeBSD.org>2013-07-12 14:24:52 +0000
commit98abe96b02ed5ba491b9dfb81da484c94559ab84 (patch)
treed968dcbe17cbe1fca5407a91b1192b59a429fcbd /lib/libthread_db
parentef82e58667b9e25aecd0a4343b97b94ce27d137e (diff)
downloadFreeBSD-src-98abe96b02ed5ba491b9dfb81da484c94559ab84.zip
FreeBSD-src-98abe96b02ed5ba491b9dfb81da484c94559ab84.tar.gz
Prefix the alias macros for members of struct __mcontext with an underscore
in order to avoid a clash in the net80211 code.
Diffstat (limited to 'lib/libthread_db')
-rw-r--r--lib/libthread_db/arch/sparc64/libpthread_md.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libthread_db/arch/sparc64/libpthread_md.c b/lib/libthread_db/arch/sparc64/libpthread_md.c
index 6a84518..ffa67e9 100644
--- a/lib/libthread_db/arch/sparc64/libpthread_md.c
+++ b/lib/libthread_db/arch/sparc64/libpthread_md.c
@@ -57,9 +57,9 @@ pt_fpreg_to_ucontext(const struct fpreg* r, ucontext_t *uc)
memcpy(mc->mc_fp, r->fr_regs, MIN(sizeof(mc->mc_fp),
sizeof(r->fr_regs)));
- mc->mc_fsr = r->fr_fsr;
- mc->mc_gsr = r->fr_gsr;
- mc->mc_fprs |= FPRS_FEF;
+ mc->_mc_fsr = r->fr_fsr;
+ mc->_mc_gsr = r->fr_gsr;
+ mc->_mc_fprs |= FPRS_FEF;
}
void
@@ -67,11 +67,11 @@ pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r)
{
const mcontext_t *mc = &uc->uc_mcontext;
- if ((mc->mc_fprs & FPRS_FEF) != 0) {
+ if ((mc->_mc_fprs & FPRS_FEF) != 0) {
memcpy(r->fr_regs, mc->mc_fp, MIN(sizeof(mc->mc_fp),
sizeof(r->fr_regs)));
- r->fr_fsr = mc->mc_fsr;
- r->fr_gsr = mc->mc_gsr;
+ r->fr_fsr = mc->_mc_fsr;
+ r->fr_gsr = mc->_mc_gsr;
} else
memset(r, 0, sizeof(*r));
}
OpenPOWER on IntegriCloud