Fix build with -fno-common

While here add dependencies reported as missing by stage-qa.
This commit is contained in:
Stefan Eßer 2020-10-01 18:57:41 +00:00
parent 96c2873877
commit 4672d1602c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550865
3 changed files with 22 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= icmpchat
PORTVERSION= 0.6
PORTREVISION= 1
CATEGORIES= net-im
MASTER_SITES= SF

View File

@ -0,0 +1,11 @@
--- sendicmp.c.orig 2003-04-08 10:58:56 UTC
+++ sendicmp.c
@@ -3,6 +3,8 @@
#include "config.h"
#include "sendicmp.h"
+struct sockaddr_in saddr;
+
int
sendpacket(int rawsock,
const unsigned char *text,

View File

@ -0,0 +1,10 @@
--- sendicmp.h.orig 2003-04-06 16:21:11 UTC
+++ sendicmp.h
@@ -16,6 +16,6 @@
int sendpacket(int, const unsigned char *, const char *, int, int);
int in_cksum(u_short *, int);
-struct sockaddr_in saddr;
+extern struct sockaddr_in saddr;
#endif /* SENDICMP_H */