summaryrefslogtreecommitdiff
path: root/net/ratoolset/files/patch-aa
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-11-28 18:15:18 +0000
committerSteve Price <steve@FreeBSD.org>1999-11-28 18:15:18 +0000
commitf338314e2ee4b4202ed368c9448732f5061978ef (patch)
tree0ff622e77d3e2c75af2b265aa4fd82f9a5b88a03 /net/ratoolset/files/patch-aa
parentUpdate to Tcl/Tk version 8.2. (diff)
Cope with ANSI C++'isms when gcc 2.95 is the system compiler.
Notes
Notes: svn path=/head/; revision=23471
Diffstat (limited to 'net/ratoolset/files/patch-aa')
-rw-r--r--net/ratoolset/files/patch-aa31
1 files changed, 29 insertions, 2 deletions
diff --git a/net/ratoolset/files/patch-aa b/net/ratoolset/files/patch-aa
index 0b92b7897829..b4052b639c36 100644
--- a/net/ratoolset/files/patch-aa
+++ b/net/ratoolset/files/patch-aa
@@ -1,5 +1,5 @@
---- src/misc/net.hh.orig Sun Sep 19 16:59:27 1999
-+++ src/misc/net.hh Sun Sep 19 17:00:00 1999
+--- src/misc/net.hh.orig Wed Jan 28 17:40:42 1998
++++ src/misc/net.hh Sat Nov 27 18:11:23 1999
@@ -86,12 +86,12 @@
int bind (...);
int listen (...);
@@ -16,3 +16,30 @@
int gettimeofday (...);
}
+@@ -132,7 +132,7 @@
+ class Timer {
+ struct timeval tv;
+ struct timezone tz;
+- init_time () {
++ void init_time () {
+ bzero ((char *) &tv, sizeof (struct timeval));
+ ::gettimeofday (&tv, &tz);
+ }
+@@ -256,7 +256,7 @@
+ return ptr;
+ }
+ u_long getInaddr () { return hexaddr; }
+- print () { printf ("%s\n%s\n0x%x\n", hostname, dottedaddr, hexaddr); }
++ void print () { printf ("%s\n%s\n0x%x\n", hostname, dottedaddr, hexaddr); }
+
+ Error error;
+ };
+@@ -331,7 +331,7 @@
+ error.warn("listen");
+ return error();
+ }
+- accept () {
++ int accept () {
+ //u_long addrlen;
+ int addrlen = sizeof (struct sockaddr);
+ bzero ((char *) &socknew, sizeof (socknew));