[project @ 2005-07-26 09:37:27 by ross]
authorross <unknown>
Tue, 26 Jul 2005 09:37:28 +0000 (09:37 +0000)
committerross <unknown>
Tue, 26 Jul 2005 09:37:28 +0000 (09:37 +0000)
PrelHandle functions are only needed by GHC

base.buildinfo.in [deleted file]
configure.ac
include/HsBase.h

diff --git a/base.buildinfo.in b/base.buildinfo.in
deleted file mode 100644 (file)
index 9fe31ef..0000000
+++ /dev/null
@@ -1 +0,0 @@
-extra-libraries: @EXTRA_LIBS@
index 34ee36f..bf75f80 100644 (file)
@@ -82,13 +82,6 @@ FP_CHECK_CONST([O_BINARY], [#include <fcntl.h>], [0])
 # Check for idiosyncracies in some mingw impls of directory handling.
 FP_READDIR_EOF_ERRNO
 
-case "$host" in
-*-mingw32) EXTRA_LIBS="wsock32" ;;
-*-solaris2) EXTRA_LIBS="nsl socket" ;;
-*)     EXTRA_LIBS= ;;
-esac
-AC_SUBST([EXTRA_LIBS])
-
-AC_CONFIG_FILES([config.mk base.buildinfo])
+AC_CONFIG_FILES([config.mk])
 
 AC_OUTPUT
index 9281db0..ba3b40a 100644 (file)
@@ -417,6 +417,8 @@ __hscore_setmode( HsInt fd, HsBool toBin )
 #endif
 }
 
+#if __GLASGOW_HASKELL__
+
 INLINE HsInt
 __hscore_PrelHandle_write( HsInt fd, HsAddr ptr, HsInt off, int sz )
 {
@@ -444,6 +446,8 @@ __hscore_PrelHandle_recv( HsInt fd, HsAddr ptr, HsInt off, int sz )
 }
 #endif
 
+#endif /* __GLASGOW_HASKELL__ */
+
 #if defined(mingw32_HOST_OS) || defined(_MSC_VER)
 INLINE long *
 __hscore_Time_ghcTimezone( void ) { return &_timezone; }