]> granicus.if.org Git - postgresql/commit
Rename base64 routines to avoid conflict with Solaris built-in functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 Feb 2018 23:33:45 +0000 (18:33 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 28 Feb 2018 23:33:45 +0000 (18:33 -0500)
commit11e7700e584e818b40013ef8e6bb17d04d8210f8
treee50954e292c664c9f0d7d69cd0d4b4d5df8fe386
parenta030b997ae33628bd77b069d23b9adc71cac9f8c
Rename base64 routines to avoid conflict with Solaris built-in functions.

Solaris 11.4 has built-in functions named b64_encode and b64_decode.
Rename ours to something else to avoid the conflict (fortunately,
ours are static so the impact is limited).

One could wish for less duplication of code in this area, but that
would be a larger patch and not very suitable for back-patching.
Since this is a portability fix, we want to put it into all supported
branches.

Report and initial patch by Rainer Orth, reviewed and adjusted a bit
by Michael Paquier

Discussion: https://postgr.es/m/ydd372wk28h.fsf@CeBiTec.Uni-Bielefeld.DE
contrib/pgcrypto/pgp-armor.c
src/backend/utils/adt/encode.c