summaryrefslogtreecommitdiff
path: root/wiretap
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2010-09-22 21:51:53 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2010-09-22 21:51:53 +0000
commit80d78c6794b0b6564268cae546ab83ccf068e67a (patch)
tree54becbac9c1e7f96a42456e6d80e95f72aaf5319 /wiretap
parent7364bef1b3262a02a649c7375acf48076e170706 (diff)
downloadwireshark-80d78c6794b0b6564268cae546ab83ccf068e67a.tar.gz
Very old versions of libz (such as the one that comes with Solaris 10) don't have gzclearerr(). Check for that function and only use it if we have it.
svn path=/trunk/; revision=34187
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/wtap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c
index 6ce9f32d16..a48ceb813b 100644
--- a/wiretap/wtap.c
+++ b/wiretap/wtap.c
@@ -648,10 +648,12 @@ wtap_close(wtap *wth)
void
wtap_cleareof(wtap *wth _U_) {
#ifdef HAVE_LIBZ
+#ifdef HAVE_GZCLEARERR
/* Reset EOF */
if (gzeof(wth->fh))
gzclearerr(wth->fh);
#endif
+#endif
}
gboolean