kopia lustrzana https://gitlab.com/sane-project/backends
Check for struct flock and define it if necessary.
Henning Meier-Geinitz <henning@meier-geinitz.de>DEVEL_2_0_BRANCH-1
rodzic
7c240b90d4
commit
3d4920dde4
|
@ -274,6 +274,17 @@ static SANE_Status
|
|||
qc_lock_wait (QC_Device * q, int wait)
|
||||
{
|
||||
#ifdef F_SETLK
|
||||
|
||||
#ifndef HAVE_STRUCT_FLOCK
|
||||
struct flock
|
||||
{
|
||||
off_t l_start;
|
||||
off_t l_len;
|
||||
pid_t l_pid;
|
||||
short l_type;
|
||||
short l_whence;
|
||||
};
|
||||
#endif /* !HAVE_STRUCT_FLOCK */
|
||||
struct flock sfl;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -88,6 +88,9 @@
|
|||
*/
|
||||
#undef STACK_DIRECTION
|
||||
|
||||
/* Define if struct flock is available */
|
||||
#undef HAVE_STRUCT_FLOCK
|
||||
|
||||
/* Define if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
|
@ -406,4 +409,6 @@
|
|||
# define __EXTENSIONS__
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#endif /* SANE_CONFIG_H */
|
||||
|
|
Ładowanie…
Reference in New Issue