aboutsummaryrefslogtreecommitdiffstats
path: root/main/lvm2/fix-stdio-usage.patch
diff options
context:
space:
mode:
authorIlya Fedorushkov <illanfed@gmail.com>2019-04-08 13:53:40 +0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-04-30 11:34:39 +0000
commit6fcaa4e4f807873c4670b4be1b4300a4e2d7fe85 (patch)
tree81db77e1f0cfec95f8221fcf1d0d730180cf82b1 /main/lvm2/fix-stdio-usage.patch
parent01fe80a36804b7d76682bb2ccf995aa79fa93081 (diff)
downloadaports-6fcaa4e4f807873c4670b4be1b4300a4e2d7fe85.tar.bz2
aports-6fcaa4e4f807873c4670b4be1b4300a4e2d7fe85.tar.xz
main/lvm2: update patches for actual version(2.02.182)
Diffstat (limited to 'main/lvm2/fix-stdio-usage.patch')
-rw-r--r--main/lvm2/fix-stdio-usage.patch22
1 files changed, 11 insertions, 11 deletions
diff --git a/main/lvm2/fix-stdio-usage.patch b/main/lvm2/fix-stdio-usage.patch
index 39ba2e1b4e..ea11b7137f 100644
--- a/main/lvm2/fix-stdio-usage.patch
+++ b/main/lvm2/fix-stdio-usage.patch
@@ -30,20 +30,20 @@
--- ./lib/commands/toolcontext.c.orig
+++ ./lib/commands/toolcontext.c
@@ -1860,7 +1860,7 @@
- /* FIXME Make this configurable? */
- reset_lvm_errno(1);
+ /* FIXME Make this configurable? */
+ reset_lvm_errno(1);
-#ifndef VALGRIND_POOL
+#if !defined(VALGRIND_POOL) && defined(__GLIBC__)
- /* Set in/out stream buffering before glibc */
- if (set_buffering) {
- /* Allocate 2 buffers */
-@@ -2241,7 +2241,7 @@
- if (cmd->libmem)
- dm_pool_destroy(cmd->libmem);
+ /* Set in/out stream buffering before glibc */
+ if (set_buffering
+ #ifdef SYS_gettid
+@@ -2254,7 +2254,7 @@
+ if (cmd->libmem)
+ dm_pool_destroy(cmd->libmem);
-#ifndef VALGRIND_POOL
+#if !defined(VALGRIND_POOL) && defined(__GLIBC__)
- if (cmd->linebuffer) {
- /* Reset stream buffering to defaults */
- if (is_valid_fd(STDIN_FILENO) &&
+ if (cmd->linebuffer) {
+ /* Reset stream buffering to defaults */
+ if (is_valid_fd(STDIN_FILENO) &&