diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-07 19:30:01 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-11-09 19:58:32 +0000 |
commit | c79dfa20652a27ae3564db7d61fc8f483f3af685 (patch) | |
tree | d539ebf5207dc31fac24b2040c14aa7ec452c5b7 /main/freeswitch/0001-FS-10774-switch_pgsql-Fix-build-for-PostgreSQL-libpq.patch | |
parent | af1406a0528ed4445ad42aa3d339092e4abbe291 (diff) | |
download | aports-c79dfa20652a27ae3564db7d61fc8f483f3af685.tar.bz2 aports-c79dfa20652a27ae3564db7d61fc8f483f3af685.tar.xz |
main/freeswitch: upgrade to 1.6.19
Diffstat (limited to 'main/freeswitch/0001-FS-10774-switch_pgsql-Fix-build-for-PostgreSQL-libpq.patch')
-rw-r--r-- | main/freeswitch/0001-FS-10774-switch_pgsql-Fix-build-for-PostgreSQL-libpq.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/main/freeswitch/0001-FS-10774-switch_pgsql-Fix-build-for-PostgreSQL-libpq.patch b/main/freeswitch/0001-FS-10774-switch_pgsql-Fix-build-for-PostgreSQL-libpq.patch new file mode 100644 index 0000000000..3de8c54572 --- /dev/null +++ b/main/freeswitch/0001-FS-10774-switch_pgsql-Fix-build-for-PostgreSQL-libpq.patch @@ -0,0 +1,34 @@ +From 9d96741f56b7f663fd1b0ad625b4b7042832ebca Mon Sep 17 00:00:00 2001 +From: Italo Rossi <italorossib@gmail.com> +Date: Mon, 6 Nov 2017 10:35:36 -0300 +Subject: [PATCH] FS-10774 - [switch_pgsql] Fix build for PostgreSQL/libpq 10 + +--- + src/switch_pgsql.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/switch_pgsql.c b/src/switch_pgsql.c +index 7928624270..f3411361fd 100644 +--- a/src/switch_pgsql.c ++++ b/src/switch_pgsql.c +@@ -386,7 +386,7 @@ SWITCH_DECLARE(switch_pgsql_status_t) switch_pgsql_next_result_timed(switch_pgsq + *result_out = res; + res->status = PQresultStatus(res->result); + switch(res->status) { +-#if POSTGRESQL_MAJOR_VERSION >= 9 && POSTGRESQL_MINOR_VERSION >= 2 ++#if (POSTGRESQL_MAJOR_VERSION == 9 && POSTGRESQL_MINOR_VERSION >= 2) || POSTGRESQL_MAJOR_VERSION > 9 + case PGRES_SINGLE_TUPLE: + /* Added in PostgreSQL 9.2 */ + #endif +@@ -397,7 +397,7 @@ SWITCH_DECLARE(switch_pgsql_status_t) switch_pgsql_next_result_timed(switch_pgsq + res->cols = PQnfields(res->result); + } + break; +-#if POSTGRESQL_MAJOR_VERSION >= 9 && POSTGRESQL_MINOR_VERSION >= 1 ++#if (POSTGRESQL_MAJOR_VERSION == 9 && POSTGRESQL_MINOR_VERSION >= 1) || POSTGRESQL_MAJOR_VERSION > 9 + case PGRES_COPY_BOTH: + /* Added in PostgreSQL 9.1 */ + #endif +-- +2.15.0 + |