summaryrefslogtreecommitdiff
path: root/comms/ifcico-cm/patches
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2001-03-09 12:08:25 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2001-03-09 12:08:25 +0000
commit6ae8753966f1e605f1e500b5dd68566cd2ca612d (patch)
tree49db27fe674c2aa742e72bd01b28c8e2e3a563e4 /comms/ifcico-cm/patches
parentaf41a2343502579a0869fce89b1ed62c14677d7b (diff)
downloadpkgsrc-6ae8753966f1e605f1e500b5dd68566cd2ca612d.tar.gz
make this build on alpha by adding missing header and fixing one instance of
using an int for a pointer.
Diffstat (limited to 'comms/ifcico-cm/patches')
-rw-r--r--comms/ifcico-cm/patches/patch-aj20
-rw-r--r--comms/ifcico-cm/patches/patch-ay11
2 files changed, 25 insertions, 6 deletions
diff --git a/comms/ifcico-cm/patches/patch-aj b/comms/ifcico-cm/patches/patch-aj
index 03de87b2b28..2e29994b194 100644
--- a/comms/ifcico-cm/patches/patch-aj
+++ b/comms/ifcico-cm/patches/patch-aj
@@ -1,13 +1,21 @@
-$NetBSD: patch-aj,v 1.2 2001/02/21 18:50:37 tv Exp $
+$NetBSD: patch-aj,v 1.3 2001/03/09 12:08:25 dmcmahill Exp $
---- ifcico/mxlookup.c.orig Wed Feb 21 10:56:21 2001
-+++ ifcico/mxlookup.c Wed Feb 21 11:00:09 2001
-@@ -226,7 +226,7 @@
- char *cp, *name;
+--- ifcico/mxlookup.c.orig Sat Jul 13 17:17:12 1996
++++ ifcico/mxlookup.c Fri Mar 9 07:01:38 2001
+@@ -170,5 +170,8 @@
+ }
+ else {
+- hp = (int)gethostbyaddr ((char*)&addr, 4, AF_INET);
++ if ( gethostbyaddr ((char*)&addr, 4, AF_INET) == NULL )
++ hp = 0;
++ else
++ hp = 1;
+ break;
+ }
+@@ -227,5 +230,5 @@
querybuf *msg;
{
- int n = dn_expand (msg, msg + 512, cp, name, MAXDNAME - 2);
+ int n = dn_expand ((char *)msg, ((char *)msg) + 512, cp, name, MAXDNAME - 2);
if (n < 0) return NULL;
-
diff --git a/comms/ifcico-cm/patches/patch-ay b/comms/ifcico-cm/patches/patch-ay
new file mode 100644
index 00000000000..84518819e75
--- /dev/null
+++ b/comms/ifcico-cm/patches/patch-ay
@@ -0,0 +1,11 @@
+$NetBSD: patch-ay,v 1.1 2001/03/09 12:08:26 dmcmahill Exp $
+
+needed for alpha when compiling with -Werror
+
+--- ifcico/recvbark.c.orig Mon Jul 15 14:02:34 1996
++++ ifcico/recvbark.c Fri Mar 9 06:51:47 2001
+@@ -1,3 +1,4 @@
+ #include <stdio.h>
++#include <string.h>
+ #include "lutil.h"
+ #include "ttyio.h"