2 openjpip.h and openjpip.c can't use index_t as a convenience typedef,
3 because OI inherited index_t in sys/types.h from Solaris. Adjust to
4 use the underlying index_param_t instead.
6 diff -ur openjpeg-2.3.1.orig/src/lib/openjpip/openjpip.h openjpeg-2.3.1/src/lib/openjpip/openjpip.h
7 --- openjpeg-2.3.1.orig/src/lib/openjpip/openjpip.h 2019-04-02 07:45:15.000000000 +0000
8 +++ openjpeg-2.3.1/src/lib/openjpip/openjpip.h 2019-06-10 18:57:32.089518326 +0000
10 * test the format of index (cidx) box in JP2 file
13 -/** Redefinition of index parameters*/
14 -typedef index_param_t index_t;
17 * Parse JP2 file and get index information from cidx box inside
19 * @param[in] fd file descriptor of the JP2 file
20 * @return pointer to the generated structure of index parameters
22 -OPJ_API index_t * OPJ_CALLCONV get_index_from_JP2file(int fd);
23 +OPJ_API index_param_t * OPJ_CALLCONV get_index_from_JP2file(int fd);
26 * Destroy index parameters
28 * @param[in,out] idx addressof the index pointer
30 -OPJ_API void OPJ_CALLCONV destroy_index(index_t **idx);
31 +OPJ_API void OPJ_CALLCONV destroy_index(index_param_t **idx);
37 * @param[in] index index parameters
39 -OPJ_API void OPJ_CALLCONV output_index(index_t *index);
40 +OPJ_API void OPJ_CALLCONV output_index(index_param_t *index);
44 diff -ur openjpeg-2.3.1.orig/src/lib/openjpip/openjpip.c openjpeg-2.3.1/src/lib/openjpip/openjpip.c
45 --- openjpeg-2.3.1.orig/src/lib/openjpip/openjpip.c 2019-04-02 07:45:15.000000000 +0000
46 +++ openjpeg-2.3.1/src/lib/openjpip/openjpip.c 2019-06-10 18:58:14.867415880 +0000
51 -index_t * OPJ_CALLCONV get_index_from_JP2file(int fd)
52 +index_param_t * OPJ_CALLCONV get_index_from_JP2file(int fd)
57 return parse_jp2file(fd);
60 -void OPJ_CALLCONV destroy_index(index_t **idx)
61 +void OPJ_CALLCONV destroy_index(index_param_t **idx)
66 -void OPJ_CALLCONV output_index(index_t *index)
67 +void OPJ_CALLCONV output_index(index_param_t *index)
71 diff -ur openjpeg-2.3.1.orig/src/bin/jpip/opj_jpip_test.c openjpeg-2.3.1/src/bin/jpip/opj_jpip_test.c
72 --- openjpeg-2.3.1.orig/src/bin/jpip/opj_jpip_test.c 2019-04-02 07:45:15.000000000 +0000
73 +++ openjpeg-2.3.1/src/bin/jpip/opj_jpip_test.c 2019-06-10 18:58:50.711326186 +0000
75 main(int argc, char *argv[])
79 + index_param_t *jp2idx;