Description: Fix build with libdraw 0.21. Author: Arun Kumar Pariyar Last-Update: 2023-07-06 --- Index: deepin-image-viewer/qimage-plugins/libraw/rawiohandler.cpp =================================================================== --- deepin-image-viewer.orig/qimage-plugins/libraw/rawiohandler.cpp 2023-07-06 17:25:08.071177279 +0545 +++ deepin-image-viewer/qimage-plugins/libraw/rawiohandler.cpp 2023-07-06 17:25:17.374839300 +0545 @@ -84,7 +84,13 @@ stream = new Datastream(device); raw = new LibRaw; - raw->imgdata.params.use_rawspeed = 1; + + #if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21) + raw->imgdata.rawparams.use_rawspeed = 1; + #else + raw->imgdata.params.use_rawspeed = 1; + #endif + if (raw->open_datastream(stream) != LIBRAW_SUCCESS) { delete raw; raw = nullptr;