From Jakub Zawadzki:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 7 Apr 2011 21:53:31 +0000 (21:53 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 7 Apr 2011 21:53:31 +0000 (21:53 +0000)
commit785e93397a8209b8ba33ed1d8bf59499a1efa867
tree4427ffcb9300a5c13bf7b616b680718387cf6763
parentf3c9cfde937e30805eff1f5632d1033b383beeed
From Jakub Zawadzki:

Introduce file_clearerr

I'm unsure of this patch,

gzclearerr() is used to clear the end-of-file mark, but for FILE
there's function which do the same (clearerr).

I created test program if clearerr() is needed for tailing file.
and it seems to work without it (at least on Linux, so for
!HAVE_LIBZ I commented it out).

For now this patch introduce file_clearerr macro, and define it
only when EOF marking must be cleared (i.e.  when HAVE_LIBZ and
HAVE_GZCLEARERR are defined).

So everything works like before, patch just to keep same prefix
for file interface :)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36510 f5534014-38df-0310-8fa8-9805f1628bb7
wiretap/file_wrappers.h
wiretap/wtap.c