Bug 5483 – Missing mcontext_t for X86_64

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
FreeBSD
Creation time
2011-01-25T10:40:00Z
Last change time
2015-06-09T05:15:14Z
Assigned to
sean
Creator
code

Attachments

IDFilenameSummaryContent-TypeSize
8760001-FreeBSD-x86_64-mcontext_t.patchgit format-patchtext/plain1948

Comments

Comment #0 by code — 2011-01-25T10:40:40Z
Created attachment 876 git format-patch I have added the missing mcontext_t for FreeBSD version X86_64. This was taken from my 8.0-FreeBSD machine/ucontext.h header. I've tested that by comparing offsets of members with the c version and using swapcontext.
Comment #1 by sohgo — 2011-01-31T19:50:24Z
I will vote this issue. I could not compile druntime without this patch. Thank you.
Comment #2 by braddr — 2011-01-31T20:11:35Z
Applied in change: https://github.com/D-Programming-Language/druntime/commit/d82f6516bcf59117252e392c2b43868f8f61c2b8 I dropped the type asserts since D defines those integral types to be fixed sizes regardless of the architecture.
Comment #3 by sohgo — 2011-02-01T03:05:31Z
I will vote this issue. I could not compile druntime without this patch. Thank you.
Comment #4 by sohgo — 2011-02-01T03:17:54Z
Oops, sorry, Please ignore the Comment #3. I have reposted the same message.