1 diff --git a/operations/external/raw-load.c b/operations/external/raw-load.c
2 index 13eb661c2..7de2e232d 100644
3 --- a/operations/external/raw-load.c
4 +++ b/operations/external/raw-load.c
5 @@ -114,7 +114,11 @@ prepare (GeglOperation *operation)
6 g_warning ("raw-load: Error Initializing raw library");
9 +#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21)
10 + p->LibRaw->rawparams.shot_select = o->image_num;
12 p->LibRaw->params.shot_select = o->image_num;
15 p->LibRaw->params.aber[0] = 1.0;
16 p->LibRaw->params.aber[2] = 1.0;