diff options
| author | Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> | 2020-05-18 19:36:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-18 10:36:03 -0700 |
| commit | 6b871df7e03690dafdc6d65f606fef036f5db4e8 (patch) | |
| tree | dcde73e81fee79639759033a5ed8a57f446d3597 /ports/libpq/patches/windows/python_lib.patch | |
| parent | 8a583e80da3b72141105da9003175679af2fcb92 (diff) | |
| download | vcpkg-6b871df7e03690dafdc6d65f606fef036f5db4e8.tar.gz vcpkg-6b871df7e03690dafdc6d65f606fef036f5db4e8.zip | |
[libpq] Update to 12.2 and some feature fixes (#10915)
* fix number of spaces in string replacement
* fix libiconv library name
* [libpq] update to 12.2
fix some issues with features
feature combination client+nls does not compile with latest VS
due to libpq src's accessing an implementation detail (needs upstream fix)
* on arm skip host openssl version check if host cannot execute the triplet version
* use PORT_VERSION to update the version references more easily
* fix tcl and python feature on windows
Diffstat (limited to 'ports/libpq/patches/windows/python_lib.patch')
| -rw-r--r-- | ports/libpq/patches/windows/python_lib.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ports/libpq/patches/windows/python_lib.patch b/ports/libpq/patches/windows/python_lib.patch new file mode 100644 index 000000000..8b52e26c7 --- /dev/null +++ b/ports/libpq/patches/windows/python_lib.patch @@ -0,0 +1,17 @@ +diff --git a/src/pl/plpython/plpython.h b/src/pl/plpython/plpython.h
+index 3a1f0d56d..6a8a09a20 100644
+--- a/src/pl/plpython/plpython.h
++++ b/src/pl/plpython/plpython.h
+@@ -46,12 +46,10 @@
+ #if defined(_MSC_VER) && defined(_DEBUG)
+ /* Python uses #pragma to bring in a non-default libpython on VC++ if
+ * _DEBUG is defined */
+-#undef _DEBUG
+ /* Also hide away errcode, since we load Python.h before postgres.h */
+ #define errcode __msvc_errcode
+ #include <Python.h>
+ #undef errcode
+-#define _DEBUG
+ #elif defined (_MSC_VER)
+ #define errcode __msvc_errcode
+ #include <Python.h>
|
