postgresql/src
Tom Lane fec443414b Rename parser token REF to REF_P to avoid a symbol conflict.
In the latest version of Apple's macOS SDK, <sys/socket.h>
fails to compile if "REF" is #define'd as something.
Apple may or may not agree that this is a bug, and even if
they do accept the bug report I filed, they probably won't
fix it very quickly.  In the meantime, our back branches will all
fail to compile gram.y.  v15 and HEAD currently escape the problem
thanks to the refactoring done in 98e93a1fc, but that's purely
accidental.  Moreover, since that patch removed a widely-visible
inclusion of <netdb.h>, back-patching it seems too likely to break
third-party code.

Instead, change the token's code name to REF_P, following our usual
convention for naming parser tokens that are likely to have symbol
conflicts.  The effects of that should be localized to the grammar
and immediately surrounding files, so it seems like a safer answer.

Per project policy that we want to keep recently-out-of-support
branches buildable on modern systems, back-patch all the way to 9.2.

Discussion: https://postgr.es/m/1803927.1665938411@sss.pgh.pa.us
2022-10-16 15:27:04 -04:00
..
backend Rename parser token REF to REF_P to avoid a symbol conflict. 2022-10-16 15:27:04 -04:00
bin Translation updates 2017-11-05 17:07:04 -05:00
include Rename parser token REF to REF_P to avoid a symbol conflict. 2022-10-16 15:27:04 -04:00
interfaces Make ecpg's rjulmdy() and rmdyjul() agree with their declarations. 2021-12-12 16:59:22 -05:00
makefiles Always use -fPIC, not -fpic, when building shared libraries with gcc. 2017-06-01 13:32:56 -04:00
pl Suppress more variable-set-but-not-used warnings from clang 15. 2022-09-21 13:52:38 -04:00
port Stamp 9.2.24. 2017-11-06 17:17:39 -05:00
template AIX: Test the -qlonglong option before use. 2015-07-17 03:02:18 -04:00
test Fix crash when columns have been added to the end of a view. 2017-10-27 17:10:21 -04:00
timezone Update time zone data files to tzdata release 2017c. 2017-10-23 18:16:04 -04:00
tools Improve gendef.pl diagnostic on failure to open sym file 2017-10-26 10:17:18 -04:00
tutorial Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in Make DLSUFFIX easily discoverable by build scripts 2021-12-15 18:00:28 -05:00
Makefile.shlib Fix typos in comments. 2017-02-06 11:34:32 +02:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00