diff options
author | rrt <unknown> | 2001-04-02 16:10:33 +0000 |
---|---|---|
committer | rrt <unknown> | 2001-04-02 16:10:33 +0000 |
commit | eb256e9af970565f79a66f8731bdaeddcc96a3a6 (patch) | |
tree | af3cf1f66b01322f35a7e971af38b6ff9b08731b /ghc/lib/std/cbits/openFile.c | |
parent | c69fc1ae9231717e81f268d4d522c1770d9fdb14 (diff) | |
download | haskell-eb256e9af970565f79a66f8731bdaeddcc96a3a6.tar.gz |
[project @ 2001-04-02 16:10:32 by rrt]
Remove old mingwin kludgery; using the latest version of mingwin from CVS,
things now work.
Diffstat (limited to 'ghc/lib/std/cbits/openFile.c')
-rw-r--r-- | ghc/lib/std/cbits/openFile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ghc/lib/std/cbits/openFile.c b/ghc/lib/std/cbits/openFile.c index 5ce3340806..e2829ff9ec 100644 --- a/ghc/lib/std/cbits/openFile.c +++ b/ghc/lib/std/cbits/openFile.c @@ -1,7 +1,7 @@ /* * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998 * - * $Id: openFile.c,v 1.19 2001/03/01 12:25:33 rrt Exp $ + * $Id: openFile.c,v 1.20 2001/04/02 16:10:33 rrt Exp $ * * openFile Runtime Support */ @@ -79,7 +79,7 @@ openFile(StgByteArray file, StgInt how, StgInt binary) int oflags; int for_writing; int created = 0; - struct Stat sb; + struct stat sb; IOFileObject* fo; int flags = 0; @@ -136,7 +136,7 @@ openFile(StgByteArray file, StgInt how, StgInt binary) } else { /* If it is a dangling symlink, break off now, too. */ #ifndef mingw32_TARGET_OS - struct Stat st; + struct stat st; if ( lstat(file,&st) == 0) { ghc_errtype = ERR_NOSUCHTHING; ghc_errstr = "dangling symlink"; @@ -193,7 +193,7 @@ openFile(StgByteArray file, StgInt how, StgInt binary) /* Make sure that we aren't looking at a directory */ - while (Fstat(fd, &sb) < 0) { + while (fstat(fd, &sb) < 0) { /* highly unlikely */ if (errno != EINTR) { cvtErrno(); |