- Notifications
You must be signed in to change notification settings - Fork5
Commit3840bc0
committed
Fix portability issues in new src/port/inet_net_ntop.c file.
1. Don't #include postgres.h in a frontend build.2. Don't assume that the backend's symbol PGSQL_AF_INET6 has anything to dowith the constant that will be used by system library functions (because,in point of fact, it usually doesn't). Fortunately, PGSQL_AF_INET is equalto AF_INET, so we can just cater for both sets of values in one caseconstruct without fear of conflict.1 parent5510931 commit3840bc0
1 file changed
+24
-1
lines changedLines changed: 24 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
24 | 25 |
| |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 |
| |
26 | 30 |
| |
27 | 31 |
| |
28 | 32 |
| |
29 | 33 |
| |
30 | 34 |
| |
| 35 | + | |
31 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
32 | 46 |
| |
33 | 47 |
| |
34 | 48 |
| |
| |||
63 | 77 |
| |
64 | 78 |
| |
65 | 79 |
| |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
66 | 87 |
| |
67 | 88 |
| |
68 | 89 |
| |
69 | 90 |
| |
70 | 91 |
| |
| 92 | + | |
| 93 | + | |
| 94 | + | |
71 | 95 |
| |
72 | 96 |
| |
73 | 97 |
| |
| |||
272 | 296 |
| |
273 | 297 |
| |
274 | 298 |
| |
275 |
| - | |
|
0 commit comments
Comments
(0)