1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

Fix build with -CURRENT.

PR:		ports/182397
Submitted by:	Sten Spans <sten blinkenlights nl> (partially)
This commit is contained in:
Xin LI 2013-10-21 06:25:48 +00:00
parent cfebf579c7
commit 7ce8c8ee9d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331092
6 changed files with 64 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= ladvd
PORTVERSION= 1.0.2
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= GOOGLE_CODE \
http://blinkenlights.nl/software/ladvd/

View File

@ -0,0 +1,10 @@
--- ./src/cli.c.orig 2012-01-01 16:17:19.000000000 -0800
+++ ./src/cli.c 2013-10-20 23:18:59.000000000 -0700
@@ -24,6 +24,7 @@
#include <sys/file.h>
#include <sys/un.h>
#include <netdb.h>
+#include <limits.h>
extern struct proto protos[];
int status = EXIT_SUCCESS;

View File

@ -0,0 +1,11 @@
--- ./src/compat/setproctitle.c.orig 2011-12-20 05:11:03.000000000 -0800
+++ ./src/compat/setproctitle.c 2013-10-20 23:21:24.000000000 -0700
@@ -144,7 +144,7 @@
vsnprintf(buf + len, sizeof(buf) - len , fmt, ap);
}
va_end(ap);
- strnvis(ptitle, buf, sizeof(ptitle),
+ strnvis(ptitle, sizeof(ptitle), buf,
VIS_CSTYLE|VIS_NL|VIS_TAB|VIS_OCTAL);
#if SPT_TYPE == SPT_PSTAT

View File

@ -0,0 +1,11 @@
--- ./src/compat/vis.c.orig 2011-12-20 05:11:03.000000000 -0800
+++ ./src/compat/vis.c 2013-10-20 23:20:15.000000000 -0700
@@ -161,7 +161,7 @@
}
int
-strnvis(char *dst, const char *src, size_t siz, int flag)
+strnvis(char *dst, size_t siz, const char *src, int flag)
{
char *start, *end;
char tbuf[5];

View File

@ -0,0 +1,11 @@
--- ./src/compat/vis.h.orig 2011-12-20 05:11:03.000000000 -0800
+++ ./src/compat/vis.h 2013-10-20 23:20:50.000000000 -0700
@@ -80,7 +80,7 @@
char *vis(char *, int, int, int);
int strvis(char *, const char *, int);
-int strnvis(char *, const char *, size_t, int);
+int strnvis(char *, size_t, const char *, int);
int strvisx(char *, const char *, size_t, int);
int strunvis(char *, const char *);
int unvis(char *, char, int *, int);

View File

@ -0,0 +1,20 @@
--- ./src/proto/tlv.c.orig 2012-01-01 16:17:19.000000000 -0800
+++ ./src/proto/tlv.c 2013-10-20 23:22:04.000000000 -0700
@@ -41,7 +41,7 @@
*(src + srclen) = '\0';
len = srclen * 4 + 1;
str = my_malloc(len);
- strnvis(str, src, len, VIS_NL|VIS_TAB|VIS_GLOB|VIS_OCTAL);
+ strnvis(str, len, src, VIS_NL|VIS_TAB|VIS_GLOB|VIS_OCTAL);
break;
case PEER_CAP:
memcpy(&cap, value, sizeof(uint16_t));
@@ -92,7 +92,7 @@
*(str + srclen) = '\0';
len = srclen * 4 + 1;
safe = my_malloc(len);
- strnvis(safe, str, len, VIS_SAFE|VIS_OCTAL);
+ strnvis(safe, len, str, VIS_SAFE|VIS_OCTAL);
return safe;
}