forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0f07d64
committed
The configure script fails to find <netinet/tcp.h>.
As a result, backend/libpq/pqcomm.c and interfaces/libpq/fe-connect.cfail to compile.The <netinet/tcp.h> header needs to be preceded by <netinet/in.h>, atleast on IRIX, Solaris and AIX. The simple configure test fails.(That header on Linux is idempotent.)The basic problem is that <netinet/tcp.h> is a BSD header. Thecorrect header for TCP internals such as TCP_NODELAY on a UNIX systemis <xti.h>. By UNIX I mean UNIX95 (aka XPG4v2 or SUSv1) or later.The current UNIX standard (UNIX98 aka SUSv2) is available online at<http://www.opengroup.org/onlinepubs/7908799/>.The fix is to add header support for <xti.h> into configure.in andconfig.h.in.The 2 files which conditionally include <netinet/tcp.h> need also toconditionally include <xti.h>.Pete Forman1 parentd390219 commit0f07d64
File tree
4 files changed
+13
-4
lines changed- src
- backend/libpq
- include
- interfaces/libpq
4 files changed
+13
-4
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
654 | 654 |
| |
655 | 655 |
| |
656 | 656 |
| |
657 |
| - | |
| 657 | + | |
658 | 658 |
| |
659 | 659 |
| |
660 | 660 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 |
| |
73 | 76 |
| |
74 | 77 |
| |
|
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 |
| |
| |||
330 | 330 |
| |
331 | 331 |
| |
332 | 332 |
| |
| 333 | + | |
| 334 | + | |
| 335 | + | |
333 | 336 |
| |
334 | 337 |
| |
335 | 338 |
| |
|
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 |
| |
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 |
| |
35 | 38 |
| |
36 | 39 |
| |
|
0 commit comments
Comments
(0)