termux-packages/packages/iperf3/iperf_api.c.patch

13 lines
383 B
Diff

diff -u -r ../iperf-3.0.3/src/iperf_api.c ./src/iperf_api.c
--- ../iperf-3.0.3/src/iperf_api.c 2014-03-26 19:06:38.000000000 +0100
+++ ./src/iperf_api.c 2014-06-16 08:51:00.128253488 +0200
@@ -2153,7 +2169,7 @@
{
int i;
struct iperf_stream *sp;
- char template[] = "/tmp/iperf3.XXXXXX";
+ char template[] = "@TERMUX_PREFIX@/tmp/iperf3.XXXXXX";
h_errno = 0;