pkgsrc/databases/postgresql92/patches/patch-src_pl_plperl_plperl.h
adam 80477122a0 The PostgreSQL Global Development Group announces PostgreSQL 9.2, the latest release of the leader in open source databases. Since the beta release was announced in May, developers and vendors have praised it as a leap forward in performance, scalability and flexibility. Users are expected to switch to this version in record numbers.
PostgreSQL 9.2 will ship with native JSON support, covering indexes, replication and performance improvements, and many more features. We are eagerly awaiting this release and will make it available in Early Access as soon as it’s released by the PostgreSQL community," said Ines Sombra, Lead Data Engineer, Engine Yard.
2012-10-05 21:03:10 +00:00

26 lines
581 B
C

$NetBSD: patch-src_pl_plperl_plperl.h,v 1.1 2012/10/05 21:03:10 adam Exp $
--- src/pl/plperl/plperl.h.orig 2011-09-22 23:57:57.000000000 +0200
+++ src/pl/plperl/plperl.h 2011-10-12 20:36:11.783264869 +0200
@@ -44,12 +44,21 @@
#undef vsnprintf
#endif
+#ifdef __sun
+#define list_head sun_list_head
+#define list_tail sun_list_tail
+#endif
/* required for perl API */
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
+#ifdef __sun
+#undef list_head
+#undef list_tail
+#endif
+
/* put back our snprintf and vsnprintf */
#ifdef USE_REPL_SNPRINTF
#ifdef snprintf