aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/mingw.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
index ed0989be2..474d9cdc6 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -229,6 +229,15 @@ int mingw_xopen(const char *pathname, int flags)
229 return ret; 229 return ret;
230} 230}
231 231
232ssize_t FAST_FUNC mingw_open_read_close(const char *fn, void *buf, size_t size)
233{
234 /* allow use of special devices */
235 int fd = mingw_open(fn, O_RDONLY|O_SPECIAL);
236 if (fd < 0)
237 return fd;
238 return read_close(fd, buf, size);
239}
240
232#undef fopen 241#undef fopen
233FILE *mingw_fopen (const char *filename, const char *otype) 242FILE *mingw_fopen (const char *filename, const char *otype)
234{ 243{