ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 11199] New: ui/mcast_stream.c: Add dependency on sys/time.

Date: Thu, 14 May 2015 21:45:00 +0000
Bug ID 11199
Summary ui/mcast_stream.c: Add dependency on sys/time.h for struct timeval
Product Wireshark
Version Git
Hardware Other
OS FreeBSD
Status UNCONFIRMED
Severity Normal
Priority Low
Component GTK+ UI
Assignee [email protected]
Reporter [email protected]

Build Information:
current git checkout
--
ui/mcast_stream.c doesn't compile on FreeBSD.

Issue: "struct timeval" is used, but sys/time.h isn't included.
Fix:

[~/wireshark-trunk/ui] edwin@t61>git diff
diff --git a/ui/mcast_stream.c b/ui/mcast_stream.c
index 1e77532..ac8df41 100644
--- a/ui/mcast_stream.c
+++ b/ui/mcast_stream.c
@@ -38,6 +38,7 @@
 #include <stdlib.h>
 #include <time.h>
 #include <string.h>
+#include <sys/time.h>

 #include "file.h"


I haven't been able to figure out how this git stuff works again, as such an
inline patch with an obvious fix instead of the proper way.


You are receiving this mail because:
  • You are watching all bug changes.