redefine_dXSBOOTARGSAPIVERCHK_macro.patch

application/octet-stream

Filename: redefine_dXSBOOTARGSAPIVERCHK_macro.patch
Type: application/octet-stream
Part: 0
Message: Re: pl/perl extension fails on Windows

Patch

Format: unified
File+
src/pl/plperl/SPI.xs 2 0
src/pl/plperl/Util.xs 3 0
diff --git a/src/pl/plperl/SPI.xs b/src/pl/plperl/SPI.xs
index 0447c50..1175426 100644
--- a/src/pl/plperl/SPI.xs
+++ b/src/pl/plperl/SPI.xs
@@ -18,6 +18,8 @@
 #include "plperl.h"
 #include "plperl_helpers.h"
 
+#undef dXSBOOTARGSAPIVERCHK
+#define dXSBOOTARGSAPIVERCHK dXSBOOTARGSNOVERCHK
 
 /*
  * Interface routine to catch ereports and punt them to Perl
diff --git a/src/pl/plperl/Util.xs b/src/pl/plperl/Util.xs
index dbba0d7..d642aa5 100644
--- a/src/pl/plperl/Util.xs
+++ b/src/pl/plperl/Util.xs
@@ -23,6 +23,9 @@
 #include "plperl.h"
 #include "plperl_helpers.h"
 
+#undef dXSBOOTARGSAPIVERCHK
+#define dXSBOOTARGSAPIVERCHK dXSBOOTARGSNOVERCHK
+
 /*
  * Implementation of plperl's elog() function
  *