forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4ebd422
committed
Disble some Win32-specific code in win32-client-only builds:
I have the problem, when building by MS-VC6.An error occurs in the 8.1.0 present source codes.nmake -f win32.mak..\..\port\getaddrinfo.c(244) : error C2065: 'WSA_NOT_ENOUGH_MEMORY'..\..\port\getaddrinfo.c(342) : error C2065: 'WSATYPE_NOT_FOUND'This is used by winsock2.h. However, Construction of a windows base iswinsock.h.Then, Since MinGW has special environment, this is right. but, it is notfound in VC6.Furthermore, in getaddrinfo.c, IPV6-API is used byLoadLibraryA("ws2_32");Referring to of dll the external memory generates this violation by VC6specification.I considered whether the whole should have been converted into winsock2.However, Now, DLL of MinGW creation operates wonderfully as it is.That's right, it has pliability by replacement of simple DLL.Then, I propose the system using winsock(non IPV6) in construction ofVC6.Hiroshi Saito1 parentf38c3e7 commit4ebd422
File tree
3 files changed
+12
-6
lines changed- src
- bin/pg_config
- include
- port
3 files changed
+12
-6
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
| 58 | + | |
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
45 | 49 |
| |
46 | 50 |
| |
47 | 51 |
| |
|
Lines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + | |
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
| |||
129 | 130 |
| |
130 | 131 |
| |
131 | 132 |
| |
| 133 | + | |
132 | 134 |
| |
133 | 135 |
| |
134 | 136 |
| |
| |||
149 | 151 |
| |
150 | 152 |
| |
151 | 153 |
| |
152 |
| - | |
| 154 | + | |
153 | 155 |
| |
154 | 156 |
| |
155 | 157 |
| |
| |||
272 | 274 |
| |
273 | 275 |
| |
274 | 276 |
| |
275 |
| - | |
| 277 | + | |
276 | 278 |
| |
277 | 279 |
| |
278 | 280 |
| |
| |||
364 | 366 |
| |
365 | 367 |
| |
366 | 368 |
| |
367 |
| - | |
| 369 | + | |
368 | 370 |
| |
369 | 371 |
| |
370 | 372 |
| |
|
0 commit comments
Comments
(0)