178c178
< static const TIFFField jpegFields[] = {
---
> static const TIFFFieldInfo jpegFieldInfo[] = {
183a184
> #define	N(a)	(sizeof (a) / sizeof (a[0]))
2082c2083
< 	if (!_TIFFMergeField(tif, jpegFields, TIFFArrayCount(jpegFields))) {
---
> 	if (!_TIFFMergeFieldInfo(tif, jpegFieldInfo, N(jpegFieldInfo))) {
