[project @ 2000-12-14 10:36:49 by sewardj]
authorsewardj <unknown>
Thu, 14 Dec 2000 10:36:49 +0000 (10:36 +0000)
committersewardj <unknown>
Thu, 14 Dec 2000 10:36:49 +0000 (10:36 +0000)
Wrap entire file in #ifdef GHCI, to create link errors if malconfigured

ghc/rts/Linker.c

index fa60810..de9897f 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Linker.c,v 1.3 2000/12/12 12:19:57 simonmar Exp $
+ * $Id: Linker.c,v 1.4 2000/12/14 10:36:49 sewardj Exp $
  *
  * (c) The GHC Team, 2000
  *
@@ -21,6 +21,8 @@
 /* ToDo: configure this */
 #include <dlfcn.h>
 
+#ifdef GHCI /* endif is right at end of file */
+
 /* A bucket in the symbol hash-table.  Primarily, maps symbol names to
  * absolute addresses.  All symbols from a given module are linked
  * together, so they can be freed at the same time.  There's also a
@@ -1443,3 +1445,4 @@ is_not_dynamically_loaded_ptr ( char* p )
    return (sk == SECTIONKIND_OTHER);
 }
 
+#endif /* GHCI */