Check for struct flock and define it if necessary.

Henning Meier-Geinitz <henning@meier-geinitz.de>
DEVEL_2_0_BRANCH-1
Henning Geinitz 2001-05-31 20:49:01 +00:00
rodzic 7c240b90d4
commit 3d4920dde4
2 zmienionych plików z 16 dodań i 0 usunięć

Wyświetl plik

@ -274,6 +274,17 @@ static SANE_Status
qc_lock_wait (QC_Device * q, int wait) qc_lock_wait (QC_Device * q, int wait)
{ {
#ifdef F_SETLK #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; struct flock sfl;
#endif #endif

Wyświetl plik

@ -88,6 +88,9 @@
*/ */
#undef STACK_DIRECTION #undef STACK_DIRECTION
/* Define if struct flock is available */
#undef HAVE_STRUCT_FLOCK
/* Define if you have the ANSI C header files. */ /* Define if you have the ANSI C header files. */
#undef STDC_HEADERS #undef STDC_HEADERS
@ -406,4 +409,6 @@
# define __EXTENSIONS__ # define __EXTENSIONS__
#endif #endif
#endif /* SANE_CONFIG_H */ #endif /* SANE_CONFIG_H */