projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix some more warnings
[ghc-base.git]
/
System
/
IO.hs
diff --git
a/System/IO.hs
b/System/IO.hs
index
3d3893d
..
0142d10
100644
(file)
--- a/
System/IO.hs
+++ b/
System/IO.hs
@@
-169,6
+169,7
@@
import Data.List
import Data.Maybe
import Foreign.C.Error
import Foreign.C.String
import Data.Maybe
import Foreign.C.Error
import Foreign.C.String
+import Foreign.C.Types
import System.Posix.Internals
#endif
import System.Posix.Internals
#endif
@@
-510,12
+511,10
@@
pathSeparator = '/'
#ifndef __NHC__
-- XXX Copied from GHC.Handle
#ifndef __NHC__
-- XXX Copied from GHC.Handle
+std_flags, output_flags, rw_flags :: CInt
std_flags = o_NONBLOCK .|. o_NOCTTY
output_flags = std_flags .|. o_CREAT
std_flags = o_NONBLOCK .|. o_NOCTTY
output_flags = std_flags .|. o_CREAT
-read_flags = std_flags .|. o_RDONLY
-write_flags = output_flags .|. o_WRONLY
rw_flags = output_flags .|. o_RDWR
rw_flags = output_flags .|. o_RDWR
-append_flags = write_flags .|. o_APPEND
#endif
#ifdef __NHC__
#endif
#ifdef __NHC__