aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-06-07 09:43:32 +0000
committerGuy Harris <guy@alum.mit.edu>2010-06-07 09:43:32 +0000
commitc731e7f9212695754a3fa9c41513bc0b3912da14 (patch)
tree762756c5d2f08b4ffb144675126c539b9b355ac5 /tshark.c
parentfc18b399fd52559a4851e209e181f9f8c0fd4ae8 (diff)
Alas, the stuff to see whether the standard output and error are the
same works only on UN*X; note that, and don't bother compiling it on Windows. svn path=/trunk/; revision=33125
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index 89c0ad35fc..e17ca2fa91 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2650,8 +2650,11 @@ load_cap_file(capture_file *cf, char *save_file, int out_file_type,
* going to the same place, flush the standard output, so everything
* buffered up is written, and then print a newline to the standard error
* before printing the error message, to separate it from the packet
- * data.
+ * data. (Alas, that only works on UN*X; st_dev is meaningless, and
+ * the _fstat() documentation at Microsoft doesn't indicate whether
+ * st_ino is even supported.)
*/
+#ifndef _WIN32
if (print_packet_info) {
struct stat stat_stdout, stat_stderr;
@@ -2663,6 +2666,7 @@ load_cap_file(capture_file *cf, char *save_file, int out_file_type,
}
}
}
+#endif
switch (err) {
case WTAP_ERR_UNSUPPORTED_ENCAP: