mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-11 04:10:52 +00:00
- Fixes https://github.com/termux/termux-packages/issues/22075 - Convert source to LF before patching - Disable `OQS_ENABLE_KEM_NTRUPRIME` to avoid https://github.com/open-quantum-safe/liboqs/issues/2324 - Disable `install` CMake targets of vendored `cpu_features` to avoid conflict with `libcpufeatures`
26 lines
677 B
Diff
26 lines
677 B
Diff
--- a/src/Mayaqua/Unix.c
|
|
+++ b/src/Mayaqua/Unix.c
|
|
@@ -310,7 +310,7 @@ bool UnixIsInVmMain()
|
|
#endif
|
|
|
|
#if defined(UNIX_LINUX)
|
|
- t = UnixExec("/bin/dmesg");
|
|
+ t = UnixExec("@TERMUX_PREFIX@/bin/dmesg");
|
|
#elif defined(__FreeBSD__)
|
|
t = UnixExec("/sbin/sysctl -n kern.vm_guest");
|
|
#endif
|
|
@@ -363,11 +363,11 @@
|
|
// Mac OS X
|
|
if (b)
|
|
{
|
|
- UnixExecSilent("/usr/sbin/sysctl -w net.inet.ipsec.esp_port=4500");
|
|
+ UnixExecSilent("@TERMUX_PREFIX@/bin/sysctl -w net.inet.ipsec.esp_port=4500");
|
|
}
|
|
else
|
|
{
|
|
- UnixExecSilent("/usr/sbin/sysctl -w net.inet.ipsec.esp_port=4501");
|
|
+ UnixExecSilent("@TERMUX_PREFIX@/bin/sysctl -w net.inet.ipsec.esp_port=4501");
|
|
}
|
|
}
|
|
}
|