Ethereal-dev: Re: [Ethereal-dev] Re: [Ethereal-cvs] rev 13626: /trunk/gtk/: packet_win.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sun, 06 Mar 2005 11:08:30 -0800
Joerg Mayer wrote:
So the proper
fix may be to remove the ifdef HAVE_LIBPCAP from capture.h and change each
include capture.h to
ifdef HAVE_LIBPCAP
 include pcap.h
 include capture.h
endif
in the calling files. Doesn anyone have a better idea?

If you don't have libpcap, you won't be doing much capturing, so including "capture.h" only if HAVE_LIBPCAP is defined makes sense to me.

(Some of the files that include it probably also already include <pcap.h>, but those that don't should also do so.)