From 309e3868706ee5115eefbc2ddf7e35bb9651dad6 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 2 Aug 2002 03:44:19 +0000 Subject: Use only on Windows; on UNIX, selectively include, in each source file, only the headers that file needs, and all the headers it needs in order to compile on various platforms and not to get any avoidable compiler warnings on those platforms (as well as any incomplete structure definitions needed to avoid those warnings). That also means that doesn't include on UNIX; we don't want it to include , at least on UNIX, as doing so 1) would mean we'd have to install that, so that programs can build with libpcap and 2) would mean that programs including would drag in a bunch of header files that they don't need. Put a newline at the end of "inet.c" - the Sun C compiler doesn't like it if the last line doesn't end with a newline. --- pcap.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pcap.h') diff --git a/pcap.h b/pcap.h index c2855b0..8e8e623 100644 --- a/pcap.h +++ b/pcap.h @@ -31,13 +31,18 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.36 2002-08-01 08:33:04 risso Exp $ (LBL) + * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.37 2002-08-02 03:44:21 guy Exp $ (LBL) */ #ifndef lib_pcap_h #define lib_pcap_h +#ifdef WIN32 #include +#else /* WIN32 */ +#include +#include +#endif /* WIN32 */ #include -- cgit v1.2.3