diff --git a/HsReadline_cbits.c b/HsReadline_cbits.c
--- a/HsReadline_cbits.c
+++ b/HsReadline_cbits.c
@@ -1,6 +1,10 @@
 #include "HsReadline.h"
 
-void hs_rl_message (const char *s) 
+void hs_rl_message (const char *s)
 {
     rl_message ("%s", s);
 }
+
+#if (__GLASGOW_HASKELL__>=706)
+int __hscore_hs_fileno (FILE *f) { return fileno (f); }
+#endif
diff --git a/System/Console/Readline.hsc b/System/Console/Readline.hsc
--- a/System/Console/Readline.hsc
+++ b/System/Console/Readline.hsc
@@ -295,10 +295,16 @@
 import Foreign.Marshal.Utils ( maybePeek, maybeWith, withMany )
 import Foreign.Marshal.Alloc ( alloca, free )
 import Foreign.Marshal.Array ( mallocArray, peekArray0, pokeArray0, withArray0 )
-import Foreign.C.Types	( CInt(..), CChar(..), CFile(..) )
+import Foreign.C.Types	( CChar, CFile )
 import Foreign.C.String	( newCString, peekCString, withCString,
 			  castCharToCChar, castCCharToChar )
 import GHC.IO.Handle.FD	( fdToHandle )
+
+#if (__GLASGOW_HASKELL__>=705)
+import Foreign.C.Types(CInt(..))
+#else
+import Foreign.C.Types(CInt)
+#endif
 
 {-# CFILES HsReadline_cbits.c #-}
 
diff --git a/readline.cabal b/readline.cabal
--- a/readline.cabal
+++ b/readline.cabal
@@ -1,5 +1,5 @@
 name:		readline
-version:	1.0.2.0
+version:	1.0.3.0
 license:	GPL
 license-file:	LICENSE
 maintainer:	libraries@haskell.org
@@ -13,8 +13,7 @@
 		readline.buildinfo.in include/HsReadlineConfig.h.in
 extra-tmp-files:
 		config.log config.status autom4te.cache config.mk
-		readline.buildinfo include/HsReadlineConfig.h
-                include/HsReadline.h
+		readline.buildinfo
 build-type: Configure
 cabal-version: >=1.2
 
