forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit92f4506
committed
The attached patch enables PostgreSQL CVS to build cleanly under Cygwin
when built against readline 4.2. Specifically, it handles the deprecationof filename_completion_function()with preference for rl_filename_completion_function()Although, I was motivated by Cygwin support, IMO this patch is appropriatefor all platforms. To quote from the readline source: #if 0 /* Backwards compatibility (compat.c). These will go away sometime. */ ... extern READLINE_EXPORT(char, *filename_completion_function) ... #endifNote that this patch is modeled after the one by Peter Eisentraut forcompletion_matches():http://www.ca.postgresql.org/~petere/readline42.htmlI tested this patch under the following environments: Cygwin with readline 4.1 Cygwin with readline 4.2 Linux with readline 2.2.1 Linux with readline 4.2and it behaved as expected.Jason Tishler1 parent8af0ea9 commit92f4506
3 files changed
+9
-4
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
928 | 928 |
| |
929 | 929 |
| |
930 | 930 |
| |
931 |
| - | |
| 931 | + | |
932 | 932 |
| |
933 | 933 |
| |
934 | 934 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 |
| - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
64 | 66 |
| |
65 | 67 |
| |
66 | 68 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
589 | 589 |
| |
590 | 590 |
| |
591 | 591 |
| |
| 592 | + | |
| 593 | + | |
| 594 | + | |
592 | 595 |
| |
593 | 596 |
| |
594 | 597 |
| |
|
0 commit comments
Comments
(0)