On Monday 25 July 2005 02:49, Paul Smedley wrote: > Hi all, > > On OS/2 - enable_locking gets enabled by configure, however as far as I > can tell, this is only used in sanei_access.c, and then, only by the > plustek backend - and the code doesn't work on OS/2. > > I know that I can run configure with a switch to disable locking, but can > configure be changed such that ENABLE_LOCKING is not set on os/2.. > > I could also workaround this by patching sanei_access.c with something > like: > #ifdef HAVE_OS2_H > # undef ENABLE_LOCKING > #endif /* HAVE_OS2_H */ > > Any thoughts on how to accomplish with configure?
Try the patch below... HTH Gerhard --- sane-backends/acinclude.m4.orig 2005-04-25 12:12:07.000000000 +0200 +++ sane-backends/acinclude.m4 2005-07-25 11:31:17.000000000 +0200 @@ -267,6 +267,11 @@ AC_DEFUN([SANE_CHECK_LOCKING], [ LOCKPATH_GROUP=uucp use_locking=yes + case "${host_os}" in + os2* ) + use_locking=no + ;; + esac # # we check the user