summaryrefslogtreecommitdiff
path: root/ghc/lib/std/cbits/fileObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/lib/std/cbits/fileObject.h')
-rw-r--r--ghc/lib/std/cbits/fileObject.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ghc/lib/std/cbits/fileObject.h b/ghc/lib/std/cbits/fileObject.h
index f41e8fdcad..886373f6b8 100644
--- a/ghc/lib/std/cbits/fileObject.h
+++ b/ghc/lib/std/cbits/fileObject.h
@@ -1,9 +1,6 @@
#ifndef FILEOBJECT_H
#define FILEOBJECT_H
-/* a good idea? */
-#include <stdio.h>
-
/*
IOFileObjects are used as part of the IO.Handle
implementation, ensuring that when handles are
@@ -52,6 +49,11 @@ typedef struct _IOFileObject {
*/
#define FILEOBJ_RW_READ 256
#define FILEOBJ_RW_WRITE 512
+/*
+ * Under Win32, a file fd is not the same as a socket fd, so
+ * we need to use separate r/w calls.
+ */
+#define FILEOBJ_WINSOCK 1024
#define FILEOBJ_IS_EOF(x) ((x)->flags & FILEOBJ_EOF)
#define FILEOBJ_SET_EOF(x) ((x)->flags |= FILEOBJ_EOF)