summaryrefslogtreecommitdiff
path: root/databases/postgresql84/patches/patch-src_pl_plperl_plperl.h
blob: 5dc56d836468df7f10d975008d9d72d69fbc9a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$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_