mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
Fix implicit declaration of functions that prevented building with Xcode 12 and later. Closes: https://trac.macports.org/ticket/62861 Add a Makefile and use it to build and install. Use the makefile 1.0 portgroup to use the right compiler, cflags, ldflags, and arch flags, and to add a universal variant. Since this changes how it builds, increase the revision. Modernize checksums. Indicate the license. Switch the homepage to something that exists.
21 lines
521 B
Diff
21 lines
521 B
Diff
Fix implicit declaration of functions.
|
|
--- ttcp.c.orig 2021-05-11 19:48:58.000000000 -0500
|
|
+++ ttcp.c 2021-05-11 20:17:33.000000000 -0500
|
|
@@ -45,6 +45,8 @@
|
|
/* #define SYSV */ /* required on SGI IRIX releases before 3.3 */
|
|
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
+#include <string.h>
|
|
#include <signal.h>
|
|
#include <ctype.h>
|
|
#include <errno.h>
|
|
@@ -55,6 +57,7 @@
|
|
#include <arpa/inet.h>
|
|
#include <netdb.h>
|
|
#include <sys/time.h> /* struct timeval */
|
|
+#include <unistd.h>
|
|
|
|
#if defined(SYSV)
|
|
#include <sys/times.h>
|