diff options
author | rrt <unknown> | 2001-03-01 12:25:33 +0000 |
---|---|---|
committer | rrt <unknown> | 2001-03-01 12:25:33 +0000 |
commit | ae2fa137637637d21e3ca46b25b9325a77e77641 (patch) | |
tree | da5bad2d07aad10a7420b39fd0cec4944395777d /ghc/lib/std/cbits/getBufferMode.c | |
parent | f0c9e5607b8c45773d6c099645e3228af2694d81 (diff) | |
download | haskell-ae2fa137637637d21e3ca46b25b9325a77e77641.tar.gz |
[project @ 2001-03-01 12:25:32 by rrt]
Apply stat fix for mingw. It's ugly, it's implausible, but it seems to work.
Unlike Cygwin...(missing no. 3).
Diffstat (limited to 'ghc/lib/std/cbits/getBufferMode.c')
-rw-r--r-- | ghc/lib/std/cbits/getBufferMode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ghc/lib/std/cbits/getBufferMode.c b/ghc/lib/std/cbits/getBufferMode.c index 8e3c09b8e4..c80290989a 100644 --- a/ghc/lib/std/cbits/getBufferMode.c +++ b/ghc/lib/std/cbits/getBufferMode.c @@ -1,7 +1,7 @@ /* * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998 * - * $Id: getBufferMode.c,v 1.3 1998/12/02 13:27:35 simonm Exp $ + * $Id: getBufferMode.c,v 1.4 2001/03/01 12:25:33 rrt Exp $ * * hIs...Buffered Runtime Support */ @@ -32,11 +32,11 @@ getBufferMode(ptr) StgForeignPtr ptr; { IOFileObject* fo = (IOFileObject*)ptr; - struct stat sb; + struct Stat sb; int fd = fo->fd; /* Try to find out the file type */ - while (fstat(fd, &sb) < 0) { + while (Fstat(fd, &sb) < 0) { /* highly unlikely */ if (errno != EINTR) { cvtErrno(); |