summaryrefslogtreecommitdiff
path: root/net/coda5_client/patches/patch-dk
diff options
context:
space:
mode:
Diffstat (limited to 'net/coda5_client/patches/patch-dk')
-rw-r--r--net/coda5_client/patches/patch-dk20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/coda5_client/patches/patch-dk b/net/coda5_client/patches/patch-dk
new file mode 100644
index 00000000000..2b8a4b0cfa6
--- /dev/null
+++ b/net/coda5_client/patches/patch-dk
@@ -0,0 +1,20 @@
+$NetBSD: patch-dk,v 1.1 1999/04/28 23:57:04 rvb Exp $
+
+diff -u /usr/pkgsrc/net/coda-5.2.2/coda-src/venus/venusvm.cc ./coda-src/venus/venusvm.cc
+--- /usr/pkgsrc/net/coda-5.2.2/coda-src/venus/venusvm.cc Mon Apr 19 20:03:06 1999
++++ ./coda-src/venus/venusvm.cc Wed Apr 28 13:01:27 1999
+@@ -293,7 +293,13 @@
+ struct hostent *h = gethostbyname(VmonHost);
+ if (h) VmonAddr = ntohl(*((unsigned long *)h->h_addr));
+
+- MyVenusId.IPAddress = myHostId;
++#ifdef DJGPP
++ /* this needs MYHOST in the cwd, but vmon is normally not enabled... */
++ MyVenusId.IPAddress = __djgpp_get_my_host();
++#else
++ MyVenusId.IPAddress = gethostid();
++#endif
++
+ MyVenusId.BirthTime = Vtime();
+
+ CEActiveList = new olist;