Commit f604ac90 authored by Jason Toffaletti's avatar Jason Toffaletti

fix minor build issues

parent 2e89b4a2
...@@ -37,7 +37,7 @@ if (HAVE_VALGRIND_H) ...@@ -37,7 +37,7 @@ if (HAVE_VALGRIND_H)
add_definitions(-DCPPA_ANNOTATE_VALGRIND) add_definitions(-DCPPA_ANNOTATE_VALGRIND)
else (HAVE_VALGRIND_H) else (HAVE_VALGRIND_H)
set(VALGRIND "no") set(VALGRIND "no")
endif (AVE_VALGRIND_H) endif (HAVE_VALGRIND_H)
# check for g++ >= 4.7 or clang++ > = 3.2 # check for g++ >= 4.7 or clang++ > = 3.2
try_run(ProgramResult try_run(ProgramResult
......
...@@ -93,7 +93,8 @@ inline void fc_make(fc_member& storage, fc_allocator& alloc, vg_member& vgm) { ...@@ -93,7 +93,8 @@ inline void fc_make(fc_member& storage, fc_allocator& alloc, vg_member& vgm) {
ctx::make_fcontext(&storage, fiber_trampoline); ctx::make_fcontext(&storage, fiber_trampoline);
vg_register(vgm, vg_register(vgm,
storage.fc_stack.base, storage.fc_stack.base,
reinterpret_cast<intptr_t>(storage.fc_stack.base) - stacksize); reinterpret_cast<void*>(
reinterpret_cast<intptr_t>(storage.fc_stack.base) - stacksize));
} }
#else #else
namespace ctx = boost::context; namespace ctx = boost::context;
...@@ -107,7 +108,8 @@ inline void fc_make(fc_member& storage, fc_allocator& alloc, vg_member& vgm) { ...@@ -107,7 +108,8 @@ inline void fc_make(fc_member& storage, fc_allocator& alloc, vg_member& vgm) {
storage = ctx::make_fcontext(alloc.allocate(mss), mss, fiber_trampoline); storage = ctx::make_fcontext(alloc.allocate(mss), mss, fiber_trampoline);
vg_register(vgm, vg_register(vgm,
storage->fc_stack.sp, storage->fc_stack.sp,
reinterpret_cast<intptr_t>(storage->fc_stack.sp) - mss); reinterpret_cast<void*>(
reinterpret_cast<intptr_t>(storage->fc_stack.sp) - mss));
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment