- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit02d074e
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 ifthey do accept the bug report I filed, they probably won'tfix it very quickly. In the meantime, our back branches will allfail to compile gram.y. v15 and HEAD currently escape the problemthanks to the refactoring done in98e93a1, but that's purelyaccidental. Moreover, since that patch removed a widely-visibleinclusion of <netdb.h>, back-patching it seems too likely to breakthird-party code.Instead, change the token's code name to REF_P, following our usualconvention for naming parser tokens that are likely to have symbolconflicts. The effects of that should be localized to the grammarand immediately surrounding files, so it seems like a safer answer.Per project policy that we want to keep recently-out-of-supportbranches buildable on modern systems, back-patch all the way to 9.2.Discussion:https://postgr.es/m/1803927.1665938411@sss.pgh.pa.us1 parente06ae1e commit02d074e
2 files changed
+6
-6
lines changedLines changed: 5 additions & 5 deletions
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 |
| |
|
Lines changed: 1 addition & 1 deletion
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
Comments
(0)