- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit751f532
committed
Try another way to detect the result type of strerror_r().
The method we've traditionally used, of redeclaring strerror_r() tosee if the compiler complains of inconsistent declarations, turns outnot to work reliably because some compilers only report a warning,not an error. Amazingly, this has gone undetected for years, eventhough it certainly breaks our detection of whether strerror_rsucceeded.Let's instead test whether the compiler will take the result ofstrerror_r() as a switch() argument. It's possible this won'twork universally either, but it's the best idea I could come up withon the spur of the moment.We should probably back-patch this once the dust settles, butfirst let's see what the buildfarm thinks of it.Discussion:https://postgr.es/m/10877.1537993279@sss.pgh.pa.us1 parent8b91d25 commit751f532
File tree
4 files changed
+15
-17
lines changed- config
- src/include
4 files changed
+15
-17
lines changedLines changed: 9 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 |
| - | |
86 |
| - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 |
| |
88 | 90 |
| |
89 | 91 |
| |
90 | 92 |
| |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 |
| - | |
| 101 | + | |
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
|
Lines changed: 4 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10792 | 10792 |
| |
10793 | 10793 |
| |
10794 | 10794 |
| |
10795 |
| - | |
10796 |
| - | |
10797 |
| - | |
10798 |
| - | |
10799 |
| - | |
10800 |
| - | |
| 10795 | + | |
| 10796 | + | |
| 10797 | + | |
| 10798 | + | |
10801 | 10799 |
| |
10802 | 10800 |
| |
10803 | 10801 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
852 | 852 |
| |
853 | 853 |
| |
854 | 854 |
| |
855 |
| - | |
| 855 | + | |
856 | 856 |
| |
857 | 857 |
| |
858 | 858 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
665 | 665 |
| |
666 | 666 |
| |
667 | 667 |
| |
668 |
| - | |
| 668 | + | |
669 | 669 |
| |
670 | 670 |
| |
671 | 671 |
| |
|
0 commit comments
Comments
(0)