- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit47fca01
committed
Use return instead of exit() in configure
Using exit() requires stdlib.h, which is not included. Use returninstead. Also add return type for main().This back-patches commit1c0cf52 into out-of-support branches,pursuant to a newly-established project policy that we'll try to keepout-of-support branches buildable on modern platforms for at leastten major releases back, ensuring people can test pg_dump and psqlcompatibility against servers that far back. With the currentdevelopment branch being v15, that works out to keeping 9.2 and upbuildable as of today.This fix is needed to get through 'configure' when using recentmacOS (and possibly other clang-based toolchains). It seems tobe sufficient to get through 'check-world', although there areannoyances such as compiler warnings, which will be dealt withseparately.Original patch by Peter EisentrautDiscussion:https://postgr.es/m/d0316012-ece7-7b7e-2d36-9c38cb77cb3b@enterprisedb.com1 parent30ffdd2 commit47fca01
3 files changed
+15
-5
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
| 87 | + | |
| 88 | + | |
87 | 89 |
| |
88 |
| - | |
| 90 | + | |
89 | 91 |
| |
90 | 92 |
| |
91 | 93 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
255 | 255 |
| |
256 | 256 |
| |
257 | 257 |
| |
| 258 | + | |
| 259 | + | |
258 | 260 |
| |
259 |
| - | |
| 261 | + | |
260 | 262 |
| |
261 | 263 |
| |
262 | 264 |
| |
|
Lines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13757 | 13757 |
| |
13758 | 13758 |
| |
13759 | 13759 |
| |
| 13760 | + | |
| 13761 | + | |
13760 | 13762 |
| |
13761 |
| - | |
| 13763 | + | |
13762 | 13764 |
| |
13763 | 13765 |
| |
13764 | 13766 |
| |
| |||
13839 | 13841 |
| |
13840 | 13842 |
| |
13841 | 13843 |
| |
| 13844 | + | |
| 13845 | + | |
13842 | 13846 |
| |
13843 |
| - | |
| 13847 | + | |
13844 | 13848 |
| |
13845 | 13849 |
| |
13846 | 13850 |
| |
| |||
13915 | 13919 |
| |
13916 | 13920 |
| |
13917 | 13921 |
| |
| 13922 | + | |
| 13923 | + | |
13918 | 13924 |
| |
13919 |
| - | |
| 13925 | + | |
13920 | 13926 |
| |
13921 | 13927 |
| |
13922 | 13928 |
| |
|
0 commit comments
Comments
(0)