diff options
author | Philipp Lohmann <pl@openoffice.org> | 2001-04-27 12:50:55 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2001-04-27 12:50:55 +0000 |
commit | 7ddd39239c37d8a9b58f4c8fc17ff2b47fe0a20b (patch) | |
tree | 40ee48d58f79a3ebff32f3a5dc84e4f57ebf9766 | |
parent | bd4fbd779fe88b929f66efd53a7d415a0205d6c2 (diff) |
look in /usr/local/lib also for libsane.so
-rw-r--r-- | extensions/source/scanner/sane.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/extensions/source/scanner/sane.cxx b/extensions/source/scanner/sane.cxx index ee8b4e1a7242..ff1d11c9ad6f 100644 --- a/extensions/source/scanner/sane.cxx +++ b/extensions/source/scanner/sane.cxx @@ -2,9 +2,9 @@ * * $RCSfile: sane.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2000-11-07 14:44:31 $ + * last change: $Author: pl $ $Date: 2001-04-27 13:50:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -213,6 +213,9 @@ Sane::~Sane() void Sane::Init() { pSaneLib = dlopen( "libsane.so", RTLD_LAZY ); + // try reasonable places that might not be in the library search path + if( ! pSaneLib ) + pSaneLib = dlopen( "/usr/local/lib/libsane.so", RTLD_LAZY ); if( pSaneLib ) { bSaneSymbolLoadFailed = FALSE; |