diff options
Diffstat (limited to 'backend/epsonds.c')
-rw-r--r-- | backend/epsonds.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backend/epsonds.c b/backend/epsonds.c index fb9694a..f2af220 100644 --- a/backend/epsonds.c +++ b/backend/epsonds.c @@ -47,6 +47,8 @@ #ifdef HAVE_SYS_TIME_H # include <sys/time.h> #endif +#include <sys/types.h> +#include <sys/socket.h> #include <unistd.h> #include "sane/saneopts.h" @@ -245,8 +247,8 @@ open_scanner(epsonds_scanner *s) /* the scanner sends a kind of welcome msg */ // XXX check command type, answer to connect is 0x80 - read = eds_recv(s, buf, 3, &status); - if (read != 3) { + read = eds_recv(s, buf, 5, &status); + if (read != 5) { sanei_tcp_close(s->fd); s->fd = -1; return SANE_STATUS_IO_ERROR; |