kopia lustrzana https://gitlab.com/sane-project/backends
Include <fcntl.h> before testing for O_NONBLOCK and <limits.h> before
testing for PATH_MAX to increase the chances of getting the real value.DEVEL_2_0_BRANCH-1
rodzic
ab2ffde5f3
commit
703c9c00c2
|
|
@ -9,6 +9,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef HAVE_OS2_H
|
||||
#include <fcntl.h>
|
||||
#ifndef O_NONBLOCK
|
||||
# ifdef O_NDELAY
|
||||
# define O_NONBLOCK O_NDELAY
|
||||
|
|
@ -18,6 +19,7 @@
|
|||
#endif
|
||||
#endif /* HAVE_OS2_H */
|
||||
|
||||
#include <limits.h>
|
||||
#ifndef PATH_MAX
|
||||
# define PATH_MAX 1024
|
||||
#endif
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue