kopia lustrzana https://gitlab.com/sane-project/backends
Only redefine O_NONBLOCK when a valid alias exists
On mingw, O_NONBLOCK is not defined. Since we were always redefining to an invalid FNDELAY, the compile failure message would mislead you during debugging. Its better for compile failure to point to real issue; which is missing O_NONBLOCK.merge-requests/1/head
rodzic
cf348762cb
commit
3e1d15d2c4
|
@ -42,9 +42,11 @@
|
|||
# ifdef O_NDELAY
|
||||
# define O_NONBLOCK O_NDELAY
|
||||
# else
|
||||
# ifdef FNDELAY
|
||||
# define O_NONBLOCK FNDELAY /* last resort */
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
#endif /* HAVE_OS2_H */
|
||||
|
||||
#include <limits.h>
|
||||
|
|
Ładowanie…
Reference in New Issue