File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 3333 * ENHANCEMENTS, OR MODIFICATIONS.
3434 *
3535 * IDENTIFICATION
36- * $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.27 2002/01/24 16:53:42 tgl Exp $
36+ * $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.28 2002/01/24 21:40:44 tgl Exp $
3737 *
3838 **********************************************************************/
3939
8080
8181#include "EXTERN.h"
8282#include "perl.h"
83+ #include "XSUB.h"
8384#include "ppport.h"
8485
86+ /* just in case these symbols aren't provided */
87+ #ifndef pTHX_
88+ #define pTHX_
89+ #define pTHX void
90+ #endif
91+
8592
8693/**********************************************************************
8794 * The information we cache about loaded procedures
@@ -124,7 +131,7 @@ static Datum plperl_func_handler(PG_FUNCTION_ARGS);
124131static plperl_proc_desc * compile_plperl_function (Oid fn_oid , bool is_trigger );
125132
126133static SV * plperl_build_tuple_argument (HeapTuple tuple , TupleDesc tupdesc );
127- static void plperl_init_shared_libs (void );
134+ static void plperl_init_shared_libs (pTHX );
128135
129136
130137/*
@@ -350,11 +357,11 @@ plperl_create_sub(char *s, bool trusted)
350357 *
351358 **********************************************************************/
352359
353- extern void boot_DynaLoader _ (( CV * cv ) );
354- extern void boot_SPI _ (( CV * cv ) );
360+ EXTERN_C void boot_DynaLoader ( pTHX_ CV * cv );
361+ EXTERN_C void boot_SPI ( pTHX_ CV * cv );
355362
356363static void
357- plperl_init_shared_libs (void )
364+ plperl_init_shared_libs (pTHX )
358365{
359366 char * file = __FILE__ ;
360367
You can’t perform that action at this time.
0 commit comments