95e3708c4c
hplip-scan-orblite-c99.patch hplip-sclpml-strcasestr.patch hplip-hpaio-gcc14.patch to avoid C99 violations which prevent building with GCC 14. [boo#1225777] The patches were taken frombbb19dff5e
andd726b77698
If the request is OK, please forward it to Factory soon-ish too so that we can switch the default compiler. Thanks! OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=252
49 lines
1.1 KiB
Diff
49 lines
1.1 KiB
Diff
scan/sane/orblite: Include <dflcn.h> for function prototypes
|
|
|
|
This is required for C99 compatibility. Also delete the unused
|
|
bb_unload function because it calls a call to the undefined
|
|
_DBG function/macro.
|
|
|
|
Submitted upstream: <https://bugs.launchpad.net/hplip/+bug/1997875>
|
|
|
|
diff --git a/scan/sane/orblite.c b/scan/sane/orblite.c
|
|
index ba86640c7528fc9c..ac59dda9c2dba593 100644
|
|
--- a/scan/sane/orblite.c
|
|
+++ b/scan/sane/orblite.c
|
|
@@ -20,6 +20,7 @@
|
|
#include "orblitei.h"
|
|
#include "orblite.h"//Added New
|
|
#include <math.h>
|
|
+#include <dlfcn.h>
|
|
#include "utils.h"
|
|
#include "io.h"
|
|
|
|
@@ -193,27 +194,6 @@ bugout:
|
|
|
|
}
|
|
|
|
-static int bb_unload(SANE_THandle ps)
|
|
-{
|
|
- _DBG("Calling orblite bb_unload: \n");
|
|
- if (ps->bb_handle)
|
|
- {
|
|
- dlclose(ps->bb_handle);
|
|
- ps->bb_handle = NULL;
|
|
- }
|
|
- if (ps->hpmud_handle)
|
|
- {
|
|
- dlclose(ps->hpmud_handle);
|
|
- ps->hpmud_handle = NULL;
|
|
- }
|
|
-// if (ps->math_handle)
|
|
-// {
|
|
-// dlclose(ps->math_handle);
|
|
-// ps->math_handle = NULL;
|
|
-// }
|
|
- return 0;
|
|
-}
|
|
-
|
|
SANE_Status
|
|
orblite_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
|
|
{
|