forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1241fcb
committed
Second attempt to silence SSL compile failures on hamerkop.
After further investigation, it seems the cause of the problemis our recent decision to start defining WIN32_LEAN_AND_MEAN.That causes <windows.h> to no longer include <wincrypt.h>, whichmeans that the OpenSSL headers are unable to prevent conflictswith that header by #undef'ing the conflicting macros. Apparently,some other system header that be-secure-openssl.c #includes afterthe OpenSSL headers is pulling in <wincrypt.h>. It's obscure justwhere that happens and why we're not seeing it on other Windowsbuildfarm animals. However, it should work to move the OpenSSL#includes to the end of the list. For the sake of future-proofing,do likewise in fe-secure-openssl.c. In passing, remove uselessdouble inclusions of <openssl/ssl.h>.Thanks to Thomas Munro for running down the relevant information.Discussion:https://postgr.es/m/1051867.1635720347@sss.pgh.pa.us1 parent05e6e78 commit1241fcb
File tree
2 files changed
+23
-11
lines changed- src
- backend/libpq
- interfaces/libpq
2 files changed
+23
-11
lines changedLines changed: 15 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 | 32 |
| |
42 | 33 |
| |
43 | 34 |
| |
| |||
46 | 37 |
| |
47 | 38 |
| |
48 | 39 |
| |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 |
| |
50 | 56 |
| |
51 | 57 |
| |
|
Lines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
34 | 33 |
| |
35 | 34 |
| |
36 | 35 |
| |
| |||
55 | 54 |
| |
56 | 55 |
| |
57 | 56 |
| |
58 |
| - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 |
| |
60 | 65 |
| |
61 | 66 |
| |
62 | 67 |
| |
63 | 68 |
| |
64 | 69 |
| |
| 70 | + | |
65 | 71 |
| |
66 | 72 |
| |
67 | 73 |
| |
|
0 commit comments
Comments
(0)