22 lines
691 B
Diff
22 lines
691 B
Diff
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
|
|
+++ qemu-3.0.0.mod/slirp/slirp.c 2018-10-26 16:49:45.300265295 +0300
|
|
@@ -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;
|
|
|