aboutsummaryrefslogtreecommitdiffstats
path: root/community/pgbouncer/const_free.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-11-01 10:21:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-11-07 16:46:13 +0000
commit60785abc20208c3ee6608c9b181e1e2ec8b3ccb5 (patch)
tree18dbfa5ab99c4f18612c0efb659e6718204d9e4f /community/pgbouncer/const_free.patch
parent78399047516ffd12f75fc672f7f8081c89e94865 (diff)
downloadaports-60785abc20208c3ee6608c9b181e1e2ec8b3ccb5.tar.bz2
aports-60785abc20208c3ee6608c9b181e1e2ec8b3ccb5.tar.xz
community/pgbouncer: rebuild against openssl 1.1
Diffstat (limited to 'community/pgbouncer/const_free.patch')
-rw-r--r--community/pgbouncer/const_free.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/community/pgbouncer/const_free.patch b/community/pgbouncer/const_free.patch
new file mode 100644
index 0000000000..a422130e50
--- /dev/null
+++ b/community/pgbouncer/const_free.patch
@@ -0,0 +1,19 @@
+diff --git a/lib/usual/base.h b/lib/usual/base.h
+index 99b23fe..f835e33 100644
+--- a/lib/usual/base.h
++++ b/lib/usual/base.h
+@@ -327,14 +327,6 @@ void log_fatal(const char *file, int line, const char *func, bool show_perror, v
+ #endif
+ #endif
+
+-/* Fix posix bug by accepting const pointer. */
+-static inline void _const_free(const void *p)
+-{
+- free((void *)p);
+-}
+-/** Compat: make free() accept const pointer */
+-#define free(x) _const_free(x)
+-
+ /** Zeroing malloc */
+ _MUSTCHECK
+ static inline void *zmalloc(size_t len)