summaryrefslogtreecommitdiffstats
path: root/0001-link-with-libresolv-for-ns_parserr.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-link-with-libresolv-for-ns_parserr.patch')
-rw-r--r--0001-link-with-libresolv-for-ns_parserr.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/0001-link-with-libresolv-for-ns_parserr.patch b/0001-link-with-libresolv-for-ns_parserr.patch
new file mode 100644
index 0000000..05e161b
--- /dev/null
+++ b/0001-link-with-libresolv-for-ns_parserr.patch
@@ -0,0 +1,24 @@
+From edcb19e0f996a505025b4b4821db4e4b3e249220 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 30 Sep 2021 16:48:48 +0200
+Subject: [PATCH] link with libresolv for ns_parserr
+
+---
+ config.m4 | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/config.m4 b/config.m4
+index e96b9703..d40844f6 100644
+--- a/config.m4
++++ b/config.m4
+@@ -439,6 +439,7 @@ if test "$PHP_MYSQL_XDEVAPI" != "no" || test "$PHP_MYSQL_XDEVAPI_ENABLED" == "ye
+ fi
+ AC_MSG_RESULT($MYSQL_XDEVAPI_PROTOBUF_INCLUDES)
+
++ PHP_CHECK_LIBRARY(resolv, ns_parserr, [PHP_ADD_LIBRARY(resolv, 1, MYSQL_XDEVAPI_SHARED_LIBADD)])
+
+ dnl compressors
+ MYSQL_XDEVAPI_RESOLVE_COMPRESSOR("$PHP_LZ4", "lz4", "lz4", "LZ4F_createCompressionContext", "lz4.h", "MYSQL_XDEVAPI_HAVE_LZ4", IS_LZ4_ENABLED)
+--
+2.31.1
+