Ticket #62861: ttcp-bigsur.diff

File ttcp-bigsur.diff, 1.5 KB (added by DanielO (Daniel O'Connor), 3 years ago)
  • ttcp/Portfile

    diff -Nur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/ttcp/Portfile ttcp/Portfile
    old new  
    22
    33name            ttcp
    44version         1.10
     5revision        1
    56categories      net
    67platforms       darwin
    78maintainers     nomaintainer
     
    2425extract.cmd             cp
    2526extract.pre_args
    2627extract.post_args       .
     28patchfiles              patch-ttcp.c
    2729
    2830use_configure   no
    2931build {
  • ttcp/files/patch-ttcp.c

    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>