summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-01-13 13:08:55 +0100
committerSergei Golubchik <serg@mariadb.org>2020-01-16 18:13:55 +0100
commitff5a528f260ea81e5ef06f4fd36c3d179e91fbd9 (patch)
treec1029aedf108e7300703b4321db6f4268adc9333 /extra
parent1b1bf430b85d74c3a3f0c7b26e7d90226e17d89a (diff)
downloadmariadb-git-ff5a528f260ea81e5ef06f4fd36c3d179e91fbd9.tar.gz
mysqltest crashes on Debian
Debian is apparently offended that pcre2-posix implements POSIX API, thus it renames all posix-compatible symbols in libpcre2-posix to have the PCRE2 prefix. But Debian doesn't do anything to pcre2posix.h header, so any unaware application will get POSIX compatible type names and function prototypes from pcre2, but actual symbols will come from libc. To remedy this enormous incongruity we have to redefine POSIX-compatible function names in pcre2posix to match Debian's hack.
Diffstat (limited to 'extra')
-rw-r--r--extra/mariabackup/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/extra/mariabackup/CMakeLists.txt b/extra/mariabackup/CMakeLists.txt
index 1649676e468..9c49a1e961b 100644
--- a/extra/mariabackup/CMakeLists.txt
+++ b/extra/mariabackup/CMakeLists.txt
@@ -38,6 +38,7 @@ INCLUDE_DIRECTORIES(
IF(NOT HAVE_SYSTEM_REGEX)
INCLUDE_DIRECTORIES(${PCRE_INCLUDES})
+ ADD_DEFINITIONS(${PCRE2_DEBIAN_HACK})
ENDIF()