Add extern flag to avoid multiple symbol errors on Mac os X
authordaniel@phasevelocity.org <unknown>
Fri, 22 Aug 2008 06:21:36 +0000 (06:21 +0000)
committerdaniel@phasevelocity.org <unknown>
Fri, 22 Aug 2008 06:21:36 +0000 (06:21 +0000)
rts/sm/BlockAlloc.h
rts/sm/GC.h

index 2d777f7..594135a 100644 (file)
@@ -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 */
index 913df24..5e2e3a5 100644 (file)
@@ -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