Commit 02d074e
committed
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 98e93a1, 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/[email protected]1 parent e06ae1e commit 02d074e
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | | - | |
| 664 | + | |
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| |||
13605 | 13605 | | |
13606 | 13606 | | |
13607 | 13607 | | |
13608 | | - | |
| 13608 | + | |
13609 | 13609 | | |
13610 | 13610 | | |
13611 | 13611 | | |
13612 | | - | |
| 13612 | + | |
13613 | 13613 | | |
13614 | 13614 | | |
13615 | 13615 | | |
13616 | | - | |
| 13616 | + | |
13617 | 13617 | | |
13618 | 13618 | | |
13619 | 13619 | | |
| |||
14810 | 14810 | | |
14811 | 14811 | | |
14812 | 14812 | | |
14813 | | - | |
| 14813 | + | |
14814 | 14814 | | |
14815 | 14815 | | |
14816 | 14816 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| |||
0 commit comments