From 28d13243252f8e8490fe0f3b92fa4a7a4ab917fe Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sun, 15 Jul 2012 12:58:10 +0100 Subject: Fix build on OS X --- rts/Trace.h | 4 ++-- rts/posix/OSThreads.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'rts') diff --git a/rts/Trace.h b/rts/Trace.h index 39102d31ad..b3710d32c9 100644 --- a/rts/Trace.h +++ b/rts/Trace.h @@ -654,8 +654,8 @@ INLINE_HEADER void traceEventGcStats(Capability *cap STG_UNUSED, copied, slop, fragmentation, par_n_threads, par_max_copied, par_tot_copied); } - dtraceEventGcStats(heap_capset, gens, - copies, slop, fragmentation, + dtraceEventGcStats(heap_capset, gen, + copied, slop, fragmentation, par_n_threads, par_max_copied, par_tot_copied); } diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c index bacae492bf..7fa2f4d75d 100644 --- a/rts/posix/OSThreads.c +++ b/rts/posix/OSThreads.c @@ -29,6 +29,10 @@ #include #endif +#if defined(HAVE_PTHREAD_H) +#include +#endif + #if defined(THREADED_RTS) #include "RtsUtils.h" #include "Task.h" -- cgit v1.2.1