Use a bunch of #includes only when needed. (2nd try; hat tip to Guy).

svn path=/trunk/; revision=51868
This commit is contained in:
Bill Meier 2013-09-09 14:26:41 +00:00
parent 955c89812d
commit aa0e020324
1 changed files with 10 additions and 1 deletions

View File

@ -28,6 +28,8 @@
#ifdef HAVE_LIBPCAP
#ifndef HAVE_PCAP_FINDALLDEVS
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@ -56,8 +58,15 @@ struct rtentry;
# include <sys/sockio.h>
#endif
#include "capture_ifinfo.h"
#include "capture-pcap-util.h"
#else
#include <pcap.h>
#endif /* HAVE_PCAP_FINDALLDEVS */
#include "capture_ifinfo.h"
#include "capture-pcap-util-int.h"
#ifndef HAVE_PCAP_FINDALLDEVS