termux-packages/x11-packages/qemu-system-x86_64/qemu-3.0.0_slirp_misc.c.patch

13 lines
430 B
Diff
Raw Normal View History

2018-12-15 19:29:40 +01:00
diff -uNr qemu-3.1.0/slirp/misc.c qemu-3.1.0.mod/slirp/misc.c
--- qemu-3.1.0/slirp/misc.c 2018-12-11 19:44:34.000000000 +0200
+++ qemu-3.1.0.mod/slirp/misc.c 2018-12-15 17:11:44.206298565 +0200
@@ -161,7 +161,7 @@
dup2(cs, 0);
dup2(cs, 1);
dup2(cs, 2);
2018-10-26 15:19:03 +02:00
- for (s = getdtablesize() - 1; s >= 3; s--)
+ for (s = sysconf(_SC_OPEN_MAX) - 1; s >= 3; s--)
close(s);
i = 0;