summaryrefslogtreecommitdiff
path: root/net-mgmt/mtrace/files
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/mtrace/files')
-rw-r--r--net-mgmt/mtrace/files/patch-Makefile10
-rw-r--r--net-mgmt/mtrace/files/patch-mtrace.c20
2 files changed, 30 insertions, 0 deletions
diff --git a/net-mgmt/mtrace/files/patch-Makefile b/net-mgmt/mtrace/files/patch-Makefile
new file mode 100644
index 000000000000..0fd85016df4c
--- /dev/null
+++ b/net-mgmt/mtrace/files/patch-Makefile
@@ -0,0 +1,10 @@
+--- Makefile.orig Thu Sep 28 22:57:58 2006
++++ Makefile Thu Sep 28 22:58:46 2006
+@@ -9,6 +9,7 @@
+ #MCAST_INCLUDE= -I/sys
+ #
+ CFLAGS= -O ${MCAST_INCLUDE} ## SunOS, OSF1, FreeBSD, IRIX
++CFLAGS+= -O2 -fno-strict-aliasing -Dlog=logit
+ #CFLAGS= -O ${MCAST_INCLUDE} -DRAW_OUTPUT_IS_RAW ## OpenBSD
+ #CFLAGS= -O ${MCAST_INCLUDE} -D__BSD_SOURCE -DRAW_OUTPUT_IS_RAW -DRAW_INPUT_IS_RAW ## Linux
+ #CFLAGS= -O ${MCAST_INCLUDE} -DSYSV -DSUNOS5 ## Solaris 2.x
diff --git a/net-mgmt/mtrace/files/patch-mtrace.c b/net-mgmt/mtrace/files/patch-mtrace.c
new file mode 100644
index 000000000000..ee0f4d7b2c57
--- /dev/null
+++ b/net-mgmt/mtrace/files/patch-mtrace.c
@@ -0,0 +1,20 @@
+--- mtrace.c.orig Thu Sep 28 22:58:53 2006
++++ mtrace.c Thu Sep 28 23:00:11 2006
+@@ -1486,6 +1486,7 @@
+ struct sockaddr_in recvaddr;
+ struct tm *now;
+ char timebuf[32];
++ time_t tr_sec;
+ int socklen;
+ int ipdatalen, iphdrlen, igmpdatalen;
+ int len, recvlen;
+@@ -1593,7 +1594,8 @@
+ }
+ }
+
+- now = localtime(&tr.tv_sec);
++ tr_sec = tr.tv_sec;
++ now = localtime(&tr_sec);
+ strftime(timebuf, sizeof(timebuf) - 1, "%b %e %k:%M:%S", now);
+ printf("Mtrace %s at %s",
+ len == 0 ? "query" :