blob: b10cbb5d60fee188ae7f4d47efd9db43abe29c9c (
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 2017/10/23 20:33:49 adam Exp $
--- src/pl/plperl/plperl.h.orig 2017-08-07 21:19:50.000000000 +0000
+++ src/pl/plperl/plperl.h
@@ -44,6 +44,10 @@
#undef vsnprintf
#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
@@ -62,6 +66,11 @@
#include "XSUB.h"
#endif
+#ifdef __sun
+#undef list_head
+#undef list_tail
+#endif
+
/* put back our snprintf and vsnprintf */
#ifdef USE_REPL_SNPRINTF
#ifdef snprintf
|