summaryrefslogtreecommitdiff
path: root/net/dynipclient/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2011-09-25 19:53:55 +0000
committerjoerg <joerg>2011-09-25 19:53:55 +0000
commitae66eb3ef695683570e8c4a3fe05f646677f6975 (patch)
treefa2c8ae57f9350e6fb1a7b6f0562ed1cd84d9936 /net/dynipclient/patches
parentb5fc7a1346774916c5550b33e83dbf3283956374 (diff)
downloadpkgsrc-ae66eb3ef695683570e8c4a3fe05f646677f6975.tar.gz
Add missing include. Fix getline conflict.
Diffstat (limited to 'net/dynipclient/patches')
-rw-r--r--net/dynipclient/patches/patch-dynipclient.c11
-rw-r--r--net/dynipclient/patches/patch-prof.c40
2 files changed, 51 insertions, 0 deletions
diff --git a/net/dynipclient/patches/patch-dynipclient.c b/net/dynipclient/patches/patch-dynipclient.c
new file mode 100644
index 00000000000..019bb1de520
--- /dev/null
+++ b/net/dynipclient/patches/patch-dynipclient.c
@@ -0,0 +1,11 @@
+$NetBSD: patch-dynipclient.c,v 1.1 2011/09/25 19:53:55 joerg Exp $
+
+--- dynipclient.c.orig 2011-09-25 09:35:33.000000000 +0000
++++ dynipclient.c
+@@ -51,4 +51,6 @@
+ */
+
++#include <stdlib.h>
++
+ #include "dynipgbl.h"
+ #include "dynipclient.h"
diff --git a/net/dynipclient/patches/patch-prof.c b/net/dynipclient/patches/patch-prof.c
new file mode 100644
index 00000000000..b70183986e0
--- /dev/null
+++ b/net/dynipclient/patches/patch-prof.c
@@ -0,0 +1,40 @@
+$NetBSD: patch-prof.c,v 1.1 2011/09/25 19:53:55 joerg Exp $
+
+--- prof.c.orig 2011-09-25 09:35:54.000000000 +0000
++++ prof.c
+@@ -65,7 +65,7 @@ static u_int profInitFlag;
+ /* local (internal) functions */
+ static u_short copyfile(FILE *, FILE *, u_int);
+ static u_short findOffset(FILE *, char *, u_short *);
+-static u_short getline(FILE *, char *, u_short, u_short);
++static u_short my_getline(FILE *, char *, u_short, u_short);
+ static u_short strcpymax(char *, char *, u_short);
+
+ u_int profGetLine(u_short lineno, char *pLine, u_short maxline, char *pFile)
+@@ -89,7 +89,7 @@ if ((fp = fopen(pFile, "r")) == NULL)
+
+ ret = 0;
+ while (lineno--)
+- ret = (u_int)getline(fp, pLine, maxline, PROF_TYPE_PLAIN);
++ ret = (u_int)my_getline(fp, pLine, maxline, PROF_TYPE_PLAIN);
+
+ fclose(fp);
+
+@@ -169,7 +169,7 @@ if ((fp = fopen(pFile,"r")) == NULL)
+
+ cnt = 1;
+ while (cnt != 0)
+- if ((cnt = getline(fp, achLine, sizeof(achLine),PROF_TYPE_CONF)) != 0)
++ if ((cnt = my_getline(fp, achLine, sizeof(achLine),PROF_TYPE_CONF)) != 0)
+ {
+ ptr = strtok(achLine, "=");
+
+@@ -372,7 +372,7 @@ pDest[len] = '\0';
+ return (len);
+ }
+
+-static u_short getline(FILE *fp, char *pBuffer, u_short usBuflen, u_short type)
++static u_short my_getline(FILE *fp, char *pBuffer, u_short usBuflen, u_short type)
+ {
+ int ch;
+ u_short cnt;