ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

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.)