From: daniel@phasevelocity.org Date: Fri, 22 Aug 2008 06:21:36 +0000 (+0000) Subject: Add extern flag to avoid multiple symbol errors on Mac os X X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=26133989f1362077cc1deac80880279a8a306a39 Add extern flag to avoid multiple symbol errors on Mac os X --- diff --git a/rts/sm/BlockAlloc.h b/rts/sm/BlockAlloc.h index 2d777f7..594135a 100644 --- a/rts/sm/BlockAlloc.h +++ b/rts/sm/BlockAlloc.h @@ -16,7 +16,7 @@ extern void checkFreeListSanity(void); nat countFreeList(void); #endif -lnat n_alloc_blocks; // currently allocated blocks -lnat hw_alloc_blocks; // high-water allocated blocks +extern lnat n_alloc_blocks; // currently allocated blocks +extern lnat hw_alloc_blocks; // high-water allocated blocks #endif /* BLOCK_ALLOC_H */ diff --git a/rts/sm/GC.h b/rts/sm/GC.h index 913df24..5e2e3a5 100644 --- a/rts/sm/GC.h +++ b/rts/sm/GC.h @@ -39,7 +39,7 @@ extern SpinLock gc_alloc_block_sync; #endif #if defined(PROF_SPIN) && defined(THREADED_RTS) -StgWord64 whitehole_spin; +extern StgWord64 whitehole_spin; #endif #define WORK_UNIT_WORDS 128