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

22 lines
691 B
Diff
Raw Normal View History

2018-10-26 15:19:03 +02:00
diff -uNr qemu-3.0.0/slirp/slirp.c qemu-3.0.0.mod/slirp/slirp.c
--- qemu-3.0.0/slirp/slirp.c 2018-08-14 22:10:35.000000000 +0300
2018-10-26 16:21:47 +02:00
+++ qemu-3.0.0.mod/slirp/slirp.c 2018-10-26 16:49:45.300265295 +0300
2018-09-17 13:27:14 +02:00
@@ -133,7 +133,7 @@
return 0;
}
old_stat = *cached_stat;
- if (stat("/etc/resolv.conf", cached_stat) != 0) {
+ if (stat("@TERMUX_PREFIX@/etc/resolv.conf", cached_stat) != 0) {
return -1;
}
if (cached_stat->st_dev == old_stat.st_dev
@@ -157,7 +157,7 @@
void *tmp_addr = alloca(addrlen);
unsigned if_index;
- f = fopen("/etc/resolv.conf", "r");
+ f = fopen("@TERMUX_PREFIX@/etc/resolv.conf", "r");
if (!f)
return -1;