[PATCH] MinGW compatibility issues
Started by Pavel Golubover 16 years ago1 messages
Here the patches to /src/include/libpq/libpq-be.h and
/src/interfaces/libpq/libpq-int.h attached improving
MinGW compatibility.
Issues described here:
http://pgolub.wordpress.com/2008/12/15/building-postgresql-client-library-using-mingw-under-winxp-sp3/
This patch adds missing includes with appropriate ifdef check
--
Nullus est in vitae sensus ipsa vera est sensus.
Attachments:
libpq-be.h.patchapplication/octet-stream; name=libpq-be.h.patchDownload
--- E:\pgsql\src\include\libpq\libpq-be.h Thu Jan 1 16:23:59 2009 UTC
+++ E:\pgsql\src\include\libpq\libpq-be.h Sat Apr 18 08:41:10 2009 UTC
@@ -47,6 +47,9 @@
#ifdef ENABLE_SSPI
#define SECURITY_WIN32
+#if defined(WIN32) && !defined(WIN32_ONLY_COMPILER)
+#include <ntsecapi.h>
+#endif
#include <security.h>
#undef SECURITY_WIN32
libpq-int.h.patchapplication/octet-stream; name=libpq-int.h.patchDownload
--- E:\pgsql\src\interfaces\libpq\libpq-int.h Thu Jan 1 16:24:03 2009 UTC
+++ E:\pgsql\src\interfaces\libpq\libpq-int.h Sat Apr 18 08:41:07 2009 UTC
@@ -55,6 +55,9 @@
#ifdef ENABLE_SSPI
#define SECURITY_WIN32
+#if defined(WIN32) && !defined(WIN32_ONLY_COMPILER)
+#include <ntsecapi.h>
+#endif
#include <security.h>
#undef SECURITY_WIN32