[server] bug fix to exclude pcap.h only in --enable-udp-server mode

This commit fixes issue #143 on github reported by Coacher. The previous
commit introduced a build time error for non UDP server mode as seen
here:

https://paste.kde.org/pkaxwobwr
This commit is contained in:
Michael Rash
2015-02-18 19:37:37 -05:00
parent 1ce800446d
commit bf251034e3
2 changed files with 8 additions and 4 deletions

View File

@@ -30,8 +30,8 @@
*/
#if USE_LIBPCAP
#include <pcap.h>
#include <pcap.h>
#endif
#include "fwknopd_common.h"
#include "pcap_capture.h"
@@ -46,6 +46,8 @@
#include <sys/wait.h>
#endif
#if USE_LIBPCAP
/* The pcap capture routine.
*/
int

View File

@@ -33,8 +33,8 @@
*/
#if USE_LIBPCAP
#include <pcap.h>
#include <pcap.h>
#endif
#include "fwknopd_common.h"
#include "netinet_common.h"
@@ -43,6 +43,8 @@
#include "utils.h"
#include "log_msg.h"
#if USE_LIBPCAP
void
process_packet(unsigned char *args, const struct pcap_pkthdr *packet_header,
const unsigned char *packet)