diff options
author | davidovski <david@davidovski.xyz> | 2022-05-22 17:47:09 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-22 17:47:09 +0100 |
commit | 79062a39e9bcb9731adbacd0bd9bcd0b59d19d0a (patch) | |
tree | f67d3b58f0c4387e7248967c491442afcee0cd06 /repo/util/llvm2/fix-stdio-usage.patch | |
parent | 2f6c333a5bcef47d9fee59f180fa827cb24290d4 (diff) |
fixes to allow for full build
Diffstat (limited to 'repo/util/llvm2/fix-stdio-usage.patch')
-rw-r--r-- | repo/util/llvm2/fix-stdio-usage.patch | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/repo/util/llvm2/fix-stdio-usage.patch b/repo/util/llvm2/fix-stdio-usage.patch deleted file mode 100644 index 5ac99fd..0000000 --- a/repo/util/llvm2/fix-stdio-usage.patch +++ /dev/null @@ -1,49 +0,0 @@ ---- ./tools/lvmcmdline.c -+++ ./tools/lvmcmdline.c -@@ -1252,7 +1252,7 @@ - int err = is_valid_fd(STDERR_FILENO); - - if (!is_valid_fd(STDIN_FILENO) && -- !(stdin = fopen(_PATH_DEVNULL, "r"))) { -+ !freopen(_PATH_DEVNULL, "r", stdin)) { - if (err) - perror("stdin stream open"); - else -@@ -1262,7 +1262,7 @@ - } - - if (!is_valid_fd(STDOUT_FILENO) && -- !(stdout = fopen(_PATH_DEVNULL, "w"))) { -+ !freopen(_PATH_DEVNULL, "w", stdout)) { - if (err) - perror("stdout stream open"); - /* else no stdout */ -@@ -1270,7 +1270,7 @@ - } - - if (!is_valid_fd(STDERR_FILENO) && -- !(stderr = fopen(_PATH_DEVNULL, "w"))) { -+ !freopen(_PATH_DEVNULL, "w", stderr)) { - printf("stderr stream open: %s\n", - strerror(errno)); - return 0; ---- ./lib/commands/toolcontext.c -+++ ./lib/commands/toolcontext.c -@@ -1869,7 +1869,7 @@ - /* 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 - #ifdef SYS_gettid -@@ -2274,7 +2274,7 @@ - - if (cmd->pending_delete_mem) - dm_pool_destroy(cmd->pending_delete_mem); --#ifndef VALGRIND_POOL -+#if !defined(VALGRIND_POOL) && defined(__GLIBC__) - if (cmd->linebuffer) { - /* Reset stream buffering to defaults */ - if (is_valid_fd(STDIN_FILENO) && |