win32 fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1113 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/slirp/slirp.h b/slirp/slirp.h
index 964d5e1..fb55ad9 100644
--- a/slirp/slirp.h
+++ b/slirp/slirp.h
@@ -33,6 +33,7 @@
#else
# define ioctlsocket ioctl
# define closesocket(s) close(s)
+# define O_BINARY 0
#endif
#include <sys/types.h>
diff --git a/slirp/tftp.c b/slirp/tftp.c
index 9052662..c9946d6 100644
--- a/slirp/tftp.c
+++ b/slirp/tftp.c
@@ -103,7 +103,7 @@
int fd;
int bytes_read = 0;
- fd = open(spt->filename, O_RDONLY);
+ fd = open(spt->filename, O_RDONLY | O_BINARY);
if (fd < 0) {
return -1;