forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit69bcd71
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 parent0325d7a commit69bcd71
4 files changed
+21
-12
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15912 | 15912 |
| |
15913 | 15913 |
| |
15914 | 15914 |
| |
15915 |
| - | |
15916 |
| - | |
15917 |
| - | |
| 15915 | + | |
| 15916 | + | |
| 15917 | + | |
15918 | 15918 |
| |
15919 | 15919 |
| |
15920 | 15920 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1738 | 1738 |
| |
1739 | 1739 |
| |
1740 | 1740 |
| |
1741 |
| - | |
1742 |
| - | |
1743 |
| - | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
1744 | 1744 |
| |
1745 | 1745 |
| |
1746 | 1746 |
| |
|
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)