--- ./pdf/pdf_file.c.origin	2025-07-02 03:04:02.169195663 -0500
+++ ./pdf/pdf_file.c	2025-07-02 03:16:27.462397777 -0500
@@ -54,8 +54,6 @@
 #  include "sjpx_luratech.h"
 #elif defined(USE_OPENJPEG_JP2)
 #  include "sjpx_openjpeg.h"
-#else
-#  include "sjpx.h"
 #endif
 
 extern const uint file_default_buffer_size;
@@ -442,6 +440,7 @@
     return 0;
 }
 
+#if defined(USE_LWF_JP2) || defined(USE_OPENJPEG_JP2)
 /*
  * dict -- the dict that contained the decoder (i.e. the image dict)
  * decode -- the decoder dict
@@ -570,6 +569,7 @@
 
     return 0;
 }
+#endif
 
 private_st_jpeg_decompress_data();
 
