aboutsummaryrefslogtreecommitdiffstats
path: root/main/udisks2/fix-stdio.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-09 12:41:39 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-09 12:41:39 +0000
commit39ddbc9b6a6d18c3d61864db93dd8e68fd3febc4 (patch)
tree716c7949bf1f7a2c04fce70cac208a90d5e88dba /main/udisks2/fix-stdio.patch
parent33c6ff68a8f4636af737bcb8835b246628ce327a (diff)
downloadaports-39ddbc9b6a6d18c3d61864db93dd8e68fd3febc4.tar.bz2
aports-39ddbc9b6a6d18c3d61864db93dd8e68fd3febc4.tar.xz
main/udisks2: fix musl build
Diffstat (limited to 'main/udisks2/fix-stdio.patch')
-rw-r--r--main/udisks2/fix-stdio.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/udisks2/fix-stdio.patch b/main/udisks2/fix-stdio.patch
new file mode 100644
index 0000000000..32ec03e8ee
--- /dev/null
+++ b/main/udisks2/fix-stdio.patch
@@ -0,0 +1,13 @@
+--- udisks-2.1.1.orig/tools/udisksctl.c
++++ udisks-2.1.1/tools/udisksctl.c
+@@ -229,8 +229,8 @@
+ }
+ else
+ {
+- fclose (stdout);
+- stdout = _color_pager_out;
++ fflush (stdout);
++ dup2 (fileno(_color_pager_out), fileno(stdout));
+ }
+
+ out: