1From f8ab74a76049f69adeebe92c62593547e05a075d Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@fujitsu.com>
3Date: Wed, 11 Jan 2023 17:22:41 +0900
4Subject: [PATCH] Fix build error when build this file.
5
6| snprintf.c:770:64: error: 'PG_STRERROR_R_BUFLEN' undeclared (first use in this function)
7|   770 |                                         char            errbuf[PG_STRERROR_R_BUFLEN];
8|       |                                                                ^~~~~~~~~~~~~~~~~~~~
9
10PG_STRERROR_R_BUFLEN is defined in postgresql, but pgpool doesn't
11include the header of postgresql.
12
13Upstream-Status: Inappropriate [OE-Specific]
14Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
15---
16 src/parser/snprintf.c | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/src/parser/snprintf.c b/src/parser/snprintf.c
20index 84ebdb2..3387897 100644
21--- a/src/parser/snprintf.c
22+++ b/src/parser/snprintf.c
23@@ -46,6 +46,7 @@
24 #include "pool_parser.h"
25 #include "stringinfo.h"
26 #include "utils/palloc.h"
27+#include "postgresql/server/port.h"
28
29 /*
30  * We used to use the platform's NL_ARGMAX here, but that's a bad idea,
31--
322.25.1
33