Loading slirp/slirp.h +1 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ typedef char *caddr_t; #else # define ioctlsocket ioctl # define closesocket(s) close(s) # define O_BINARY 0 #endif #include <sys/types.h> Loading slirp/tftp.c +1 −1 Original line number Diff line number Diff line Loading @@ -103,7 +103,7 @@ static int tftp_read_data(struct tftp_session *spt, u_int16_t block_nr, 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; Loading Loading
slirp/slirp.h +1 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ typedef char *caddr_t; #else # define ioctlsocket ioctl # define closesocket(s) close(s) # define O_BINARY 0 #endif #include <sys/types.h> Loading
slirp/tftp.c +1 −1 Original line number Diff line number Diff line Loading @@ -103,7 +103,7 @@ static int tftp_read_data(struct tftp_session *spt, u_int16_t block_nr, 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; Loading