summaryrefslogtreecommitdiff
path: root/databases/postgresql13/patches/patch-src_pl_plperl_plperl.h
blob: c3cb58e428ba4c7a42f81bccfdec4d6c86eb1566 (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 2020/10/18 09:24:02 adam Exp $

--- src/pl/plperl/plperl.h.orig	2019-09-30 20:06:55.000000000 +0000
+++ src/pl/plperl/plperl.h
@@ -68,6 +68,10 @@
 #define HAS_BOOL 1
 #endif
 
+#ifdef __sun
+#define list_head sun_list_head
+#define list_tail sun_list_tail
+#endif
 
 /*
  * Get the basic Perl API.  We use PERL_NO_GET_CONTEXT mode so that our code
@@ -110,6 +114,11 @@
 #include "XSUB.h"
 #endif
 
+#ifdef __sun
+#undef list_head
+#undef list_tail
+#endif
+
 /* put back our *printf macros ... this must match src/include/port.h */
 #ifdef vsnprintf
 #undef vsnprintf