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/setBuffering.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/setBuffering.c')
-rw-r--r-- | ghc/lib/std/cbits/setBuffering.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ghc/lib/std/cbits/setBuffering.c b/ghc/lib/std/cbits/setBuffering.c index 6bc943a4ac..14f73d4aa2 100644 --- a/ghc/lib/std/cbits/setBuffering.c +++ b/ghc/lib/std/cbits/setBuffering.c @@ -1,7 +1,7 @@ /* * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998 * - * $Id: setBuffering.c,v 1.11 2001/03/01 12:25:33 rrt Exp $ + * $Id: setBuffering.c,v 1.12 2001/04/02 16:10:33 rrt Exp $ * * hSetBuffering Runtime Support */ @@ -38,7 +38,7 @@ setBuffering(StgForeignPtr ptr, StgInt size) #ifndef mingw32_TARGET_OS struct termios tio; #endif - struct Stat sb; + struct stat sb; /* First off, flush old buffer.. */ if ( (fo->flags & FILEOBJ_WRITE) ) { @@ -100,7 +100,7 @@ setBuffering(StgForeignPtr ptr, StgInt size) case SB_BB: #ifdef HAVE_ST_BLKSIZE - while (Fstat(fo->fd, &sb) < 0) { + while (fstat(fo->fd, &sb) < 0) { /* not very likely.. */ if ( errno != EINTR ) { cvtErrno(); |