fix compile failure on non-windows platform.

merge-requests/1/head
Chris Bagwell 2011-11-08 21:22:42 -06:00
rodzic db068dd6b1
commit c64249fc31
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -45,6 +45,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#ifdef HAVE_WINSOCK2_H
#include <winsock2.h>
@ -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)