kopia lustrzana https://gitlab.com/sane-project/backends
fix compile failure on non-windows platform.
rodzic
db068dd6b1
commit
c64249fc31
|
@ -45,6 +45,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
|
||||||
#ifdef HAVE_WINSOCK2_H
|
#ifdef HAVE_WINSOCK2_H
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
@ -194,7 +195,7 @@ sanei_udp_set_nonblock(int fd, SANE_Bool nonblock)
|
||||||
|
|
||||||
ioctlsocket(fd, FIONBIO, &mode);
|
ioctlsocket(fd, FIONBIO, &mode);
|
||||||
#else
|
#else
|
||||||
long flags;
|
long save_flags, flags;
|
||||||
|
|
||||||
save_flags = flags = fcntl(fd, F_GETFL, 0L);
|
save_flags = flags = fcntl(fd, F_GETFL, 0L);
|
||||||
if (nonblock)
|
if (nonblock)
|
||||||
|
|
Ładowanie…
Reference in New Issue