diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-06-07 09:43:32 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-06-07 09:43:32 +0000 |
commit | c731e7f9212695754a3fa9c41513bc0b3912da14 (patch) | |
tree | 762756c5d2f08b4ffb144675126c539b9b355ac5 /tshark.c | |
parent | fc18b399fd52559a4851e209e181f9f8c0fd4ae8 (diff) | |
download | wireshark-c731e7f9212695754a3fa9c41513bc0b3912da14.tar.gz wireshark-c731e7f9212695754a3fa9c41513bc0b3912da14.tar.bz2 wireshark-c731e7f9212695754a3fa9c41513bc0b3912da14.zip |
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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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: |