Skip to content
Browse files

include sys/ucontext.h instead of ucontext.h. Otherwise wont compile …

…in Snow Leopard
  • Loading branch information...
1 parent 8531370 commit 19b5d7bb472e0908cb7a82b206603c5b67639231 @juliend2 juliend2 committed Jul 16, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 vendor/gc/mach_dep.c
  2. +1 −1 vendor/gc/os_dep.c
View
2 vendor/gc/mach_dep.c
@@ -160,7 +160,7 @@ void GC_push_regs()
#endif
#if !defined(HAVE_PUSH_REGS) && defined(UNIX_LIKE)
-# include <ucontext.h>
+# include <sys/ucontext.h>
#endif
/* Ensure that either registers are pushed, or callee-save registers */
View
2 vendor/gc/os_dep.c
@@ -2752,7 +2752,7 @@ GC_bool GC_old_segv_handler_used_si;
# if defined(MSWIN32) || defined(MSWINCE)
LONG WINAPI GC_write_fault_handler(struct _EXCEPTION_POINTERS *exc_info)
# else
-# include <ucontext.h>
+# include <sys/ucontext.h>
/*ARGSUSED*/
void GC_write_fault_handler(int sig, siginfo_t *si, void *raw_sc)
# endif /* MSWIN32 || MSWINCE */

0 comments on commit 19b5d7b

Please sign in to comment.
Something went wrong with that request. Please try again.