diff -Nur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/ttcp/Portfile ttcp/Portfile
old
|
new
|
|
2 | 2 | |
3 | 3 | name ttcp |
4 | 4 | version 1.10 |
| 5 | revision 1 |
5 | 6 | categories net |
6 | 7 | platforms darwin |
7 | 8 | maintainers nomaintainer |
… |
… |
|
24 | 25 | extract.cmd cp |
25 | 26 | extract.pre_args |
26 | 27 | extract.post_args . |
| 28 | patchfiles patch-ttcp.c |
27 | 29 | |
28 | 30 | use_configure no |
29 | 31 | build { |
diff -Nur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/ttcp/files/patch-ttcp.c ttcp/files/patch-ttcp.c
old
|
new
|
|
| 1 | --- ttcp.c.orig 2021-05-11 17:06:49.000000000 +0930 |
| 2 | +++ ttcp.c 2021-05-11 17:12:13.000000000 +0930 |
| 3 | @@ -43,8 +43,10 @@ |
| 4 | /* #define BSD42 */ |
| 5 | /* #define BSD41a */ |
| 6 | /* #define SYSV */ /* required on SGI IRIX releases before 3.3 */ |
| 7 | - |
| 8 | +#include <sys/uio.h> |
| 9 | #include <stdio.h> |
| 10 | +#include <stdlib.h> |
| 11 | +#include <string.h> |
| 12 | #include <signal.h> |
| 13 | #include <ctype.h> |
| 14 | #include <errno.h> |
| 15 | @@ -55,7 +57,7 @@ |
| 16 | #include <arpa/inet.h> |
| 17 | #include <netdb.h> |
| 18 | #include <sys/time.h> /* struct timeval */ |
| 19 | - |
| 20 | +#include <unistd.h> |
| 21 | #if defined(SYSV) |
| 22 | #include <sys/times.h> |
| 23 | #include <sys/param.h> |