[project @ 2001-02-19 16:10:23 by rrt]
authorrrt <unknown>
Mon, 19 Feb 2001 16:10:23 +0000 (16:10 +0000)
committerrrt <unknown>
Mon, 19 Feb 2001 16:10:23 +0000 (16:10 +0000)
Don't declare unused struct termios on mingwin.

ghc/lib/std/cbits/setBuffering.c

index 2bb240b..4a8c5bf 100644 (file)
@@ -1,7 +1,7 @@
 /* 
  * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
  *
- * $Id: setBuffering.c,v 1.9 2001/01/16 14:06:14 simonmar Exp $
+ * $Id: setBuffering.c,v 1.10 2001/02/19 16:10:23 rrt Exp $
  *
  * hSetBuffering Runtime Support
  */
@@ -35,7 +35,9 @@ setBuffering(StgForeignPtr ptr, StgInt size)
     IOFileObject* fo = (IOFileObject*)ptr;
     int flags, rc=0;
     int input, isaterm;
+#ifndef mingw32_TARGET_OS
     struct termios tio;
+#endif
     struct stat sb;
 
     /* First off, flush old buffer.. */