[sane-devel] dll.c OS/2 specific patch

Franz Bakan fbakan at gmx.net
Wed Apr 21 17:12:04 BST 2004


Hi,

to make dynamic loading of backend-dlls work on OS/2
there is a patch needed. Could someone please commit?

Drawback on OS/2 is that the backend.dll names have a length
limitation. IIRC they have to be 8.3
Doses someone has a suggestion for a workaround?

Bye
Franz

Patch follows:


*** dll.c	Mon Jan  5 23:25:16 2004
--- g:dll.c	Wed Apr 21 01:49:36 2004
***************
*** 308,313 ****
--- 308,317 ----
  #   undef PREFIX
  #   define PREFIX "cygsane-"
  #   define POSTFIX "-%u.dll"
+ #elif defined (HAVE_OS2_H)
+ #   undef PREFIX
+ #   define PREFIX ""
+ #   define POSTFIX ".dll"
  # else
  #   define POSTFIX ".so.%u"
  # endif







More information about the sane-devel mailing list