I have no opinion on this sort of work-around (it should work afaict, and I haven't found any other places where we currently use toff_t), but did you file a bug with whatever distro has such broken headers?
- Re: windowscodecs: Workaround libtiff bug when it defines... Vincent Povirk
- Re: windowscodecs: Workaround libtiff bug when it de... Vincent Povirk
- Re: windowscodecs: Workaround libtiff bug when it de... Austin English
- Re: windowscodecs: Workaround libtiff bug when it de... Dmitry Timoshkov