--- gdal-2.1.3/frmts/jpeg2000/jpeg2000_vsil_io.h.orig 2017-03-31 17:06:52.996122910 +0200 +++ gdal-2.1.3/frmts/jpeg2000/jpeg2000_vsil_io.h 2017-03-31 17:07:06.356370202 +0200 @@ -34,4 +34,6 @@ jas_stream_t *JPEG2000_VSIL_fopen(const char *filename, const char *mode); +#define uchar unsigned char + #endif