Work around 8 char limit for dynamic loading on OS/2 (patch from Franz Bakan

<fbakan@gmx.net>).
merge-requests/1/head
Henning Geinitz 2004-05-24 19:16:41 +00:00
rodzic 9737eaab84
commit da5773b8cb
3 zmienionych plików z 14 dodań i 2 usunięć

Wyświetl plik

@ -1,3 +1,9 @@
2004-05-24 Henning Meier-Geinitz <henning@meier-geinitz.de>
* backend/dll.c doc/descriptions/dll.desc: Work around 8 char
limit for dynamic loading on OS/2 (patch from Franz Bakan
<fbakan@gmx.net>).
2004-05-24 m. allan noah <anoah at pfeiffer dot edu>
* backend/fujitsu.[ch]: apply Mattias Ellert's thread patch
split packet counter into r and w

Wyświetl plik

@ -44,7 +44,7 @@
/* Please increase version number with every change
(don't forget to update dll.desc) */
#define DLL_VERSION "1.0.10"
#define DLL_VERSION "1.0.11"
#ifdef _AIX
# include "lalloca.h" /* MUST come first for AIX! */
@ -378,8 +378,14 @@ load (struct backend *be)
while (dir)
{
#ifdef HAVE_OS2_H /* only max 8.3 names possible for dlls on OS/2 */
snprintf (libname, sizeof (libname), "%s/" PREFIX "%.2s%.6s" POSTFIX,
dir, be->name, strlen(be->name)>8 ? (be->name)+strlen(be->name)-6 :
(be->name)+2, V_MAJOR);
#else
snprintf (libname, sizeof (libname), "%s/" PREFIX "%s" POSTFIX,
dir, be->name, V_MAJOR);
#endif
DBG (4, "load: trying to load `%s'\n", libname);
fp = fopen (libname, "r");
if (fp)

Wyświetl plik

@ -1,5 +1,5 @@
:backend "dll" ; name of backend
:version "1.0.8"
:version "1.0.11"
:manpage "sane-dll"
:url "mailto:henning@meier-geinitz.de"