Patch1: pgpool-II-head.patch
%if %{pgsql_ver} >=94 && %{rhel} >= 7
Patch2: pgpool_socket_dir.patch
+Patch3: pcp_unix_domain_path.patch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: postgresql%{pg_version}-devel pam-devel openssl-devel libmemcached-devel jade libxslt docbook-dtds docbook-style-xsl docbook-style-dsssl
%patch1 -p1
%if %{pgsql_ver} >=94 && %{rhel} >= 7
%patch2 -p0
+%patch3 -p0
%endif
%build
--- /dev/null
+*** src/include/pcp/pcp_stream.h 2020-07-31 09:24:10.835496879 +0900
+--- pcp_stream.h 2020-07-31 09:24:02.598396128 +0900
+***************
+*** 49,54 ****
+ extern int pcp_write(PCP_CONNECTION * pc, void *buf, int len);
+ extern int pcp_flush(PCP_CONNECTION * pc);
+
+! #define UNIX_DOMAIN_PATH "/tmp"
+
+ #endif /* PCP_STREAM_H */
+--- 49,54 ----
+ extern int pcp_write(PCP_CONNECTION * pc, void *buf, int len);
+ extern int pcp_flush(PCP_CONNECTION * pc);
+
+! #define UNIX_DOMAIN_PATH "/var/run/postgresql"
+
+ #endif /* PCP_STREAM_H */