History

tccrun: fix build on DragonFly BSD.

minux committed 12 years ago

Commit 8d3e0b31 parent 5f7cdd21 file · +2 −2Browse files

Unified · Split

tccrun.c+2−2
@@ -528,7 +528,7 @@ static int rt_get_caller_pc(addr_t *paddr, ucontext_t *uc, int level) · 527 unmodified lines
528528 /* XXX: only support linux */
529529 #if defined(__APPLE__)
530530 *paddr = uc->uc_mcontext->__ss.__rip;
531−#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
531+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
532532 *paddr = uc->uc_mcontext.mc_rip;
533533 #else
534534 *paddr = uc->uc_mcontext.gregs[REG_RIP];
@@ -537,7 +537,7 @@ static int rt_get_caller_pc(addr_t *paddr, ucontext_t *uc, int level) · 2 unmodified lines
537537 } else {
538538 #if defined(__APPLE__)
539539 fp = uc->uc_mcontext->__ss.__rbp;
540−#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
540+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
541541 fp = uc->uc_mcontext.mc_rbp;
542542 #else
543543 fp = uc->uc_mcontext.gregs[REG_RBP];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t