forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit167ba6b
committed
Use our own getopt() on OpenBSD.
Recent OpenBSD (at least 5.9 and up) has a version of getopt(3)that will not cope with the "-:" spec we use to accept double-dashoptions in postgres.c and postmaster.c. Admittedly, that's a hackbecause POSIX only requires getopt() to allow alphanumeric optioncharacters. I have no desire to find another way, however, solet's just do what we were already doing on Solaris: force useof our own src/port/getopt.c implementation.In passing, improve some of the comments around said implementation.Per buildfarm and local testing. Back-patch to all supported branches.Discussion:https://postgr.es/m/30197.1547835700@sss.pgh.pa.us1 parent9450b91 commit167ba6b
4 files changed
+21
-12
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13374 | 13374 |
| |
13375 | 13375 |
| |
13376 | 13376 |
| |
13377 |
| - | |
13378 |
| - | |
13379 |
| - | |
| 13377 | + | |
| 13378 | + | |
| 13379 | + | |
13380 | 13380 |
| |
13381 | 13381 |
| |
13382 | 13382 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1652 | 1652 |
| |
1653 | 1653 |
| |
1654 | 1654 |
| |
1655 |
| - | |
1656 |
| - | |
1657 |
| - | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
1658 | 1658 |
| |
1659 | 1659 |
| |
1660 | 1660 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
2 | 11 |
| |
3 | 12 |
| |
4 | 13 |
| |
| |||
39 | 48 |
| |
40 | 49 |
| |
41 | 50 |
| |
| 51 | + | |
42 | 52 |
| |
43 | 53 |
| |
44 | 54 |
| |
|
Lines changed: 5 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
5 | 3 |
| |
6 | 4 |
| |
7 | 5 |
| |
| |||
40 | 38 |
| |
41 | 39 |
| |
42 | 40 |
| |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
47 | 46 |
| |
48 | 47 |
| |
49 | 48 |
| |
|
0 commit comments
Comments
(0)