pkgsrc-ng/databases/postgresql84/patches/patch-src_pl_plperl_plperl.h
2013-09-26 17:14:40 +02:00

28 lines
586 B
C

$NetBSD: patch-src_pl_plperl_plperl.h,v 1.1 2011/10/12 19:44:51 hans Exp $
--- src/pl/plperl/plperl.h.orig 2011-09-23 00:03:52.000000000 +0200
+++ src/pl/plperl/plperl.h 2011-10-12 20:41:41.351787708 +0200
@@ -26,12 +26,22 @@
#endif
#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"
#include "ppport.h"
+#ifdef __sun
+#undef list_head
+#undef list_tail
+#endif
+
/* just in case these symbols aren't provided */
#ifndef pTHX_
#define pTHX_