diff --git a/sanei/sanei_udp.c b/sanei/sanei_udp.c index 3e84761cc..795b2deb1 100644 --- a/sanei/sanei_udp.c +++ b/sanei/sanei_udp.c @@ -45,6 +45,7 @@ #include #include #include +#include #ifdef HAVE_WINSOCK2_H #include @@ -194,7 +195,7 @@ sanei_udp_set_nonblock(int fd, SANE_Bool nonblock) ioctlsocket(fd, FIONBIO, &mode); #else - long flags; + long save_flags, flags; save_flags = flags = fcntl(fd, F_GETFL, 0L); if (nonblock)