Given how similar funopen(3) and fopencookie(3) are aside from API, it is
unfortunate that programs that use the latter need ifdefs and slight code
changes to be portable between platforms.
So, adopt the glibc interface.
Yes, BSD had funopen(3) first and glibc decided to do their own thing. I don't
think spite is a good reason not to ease portability, though. Adding the shim
is cheap and doesn't hurt. Finally, with both interfaces we are in good shape
regardless which, if any, interface becomes standard.