- Notifications
You must be signed in to change notification settings - Fork28
Commite4ffa0d
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 parent4dff893 commite4ffa0d
4 files changed
+21
-12
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15617 | 15617 |
| |
15618 | 15618 |
| |
15619 | 15619 |
| |
15620 |
| - | |
15621 |
| - | |
15622 |
| - | |
| 15620 | + | |
| 15621 | + | |
| 15622 | + | |
15623 | 15623 |
| |
15624 | 15624 |
| |
15625 | 15625 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1717 | 1717 |
| |
1718 | 1718 |
| |
1719 | 1719 |
| |
1720 |
| - | |
1721 |
| - | |
1722 |
| - | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
1723 | 1723 |
| |
1724 | 1724 |
| |
1725 | 1725 |
| |
|
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)