From 80d78c6794b0b6564268cae546ab83ccf068e67a Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Wed, 22 Sep 2010 21:51:53 +0000 Subject: 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 --- wiretap/wtap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wiretap/wtap.c') 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 -- cgit v1.2.3