Fix pcap_getevent warning
This commit is contained in:
parent
8ce09f61a1
commit
43643aa3de
1 changed files with 4 additions and 2 deletions
|
|
@ -3,14 +3,16 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <pcap.h>
|
|
||||||
#include "ethsock.h"
|
#include "ethsock.h"
|
||||||
#include "nmrpd.h"
|
#include "nmrpd.h"
|
||||||
|
|
||||||
#if defined(NMRPFLASH_WINDOWS)
|
#if defined(NMRPFLASH_WINDOWS)
|
||||||
#include <windows.h>
|
|
||||||
#define NMRPFLASH_ALIAS_PREFIX "net"
|
#define NMRPFLASH_ALIAS_PREFIX "net"
|
||||||
|
#define WPCAP
|
||||||
|
#include <pcap.h>
|
||||||
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
|
#include <pcap.h>
|
||||||
#include <ifaddrs.h>
|
#include <ifaddrs.h>
|
||||||
#if defined(NMRPFLASH_LINUX)
|
#if defined(NMRPFLASH_LINUX)
|
||||||
#include <linux/if_packet.h>
|
#include <linux/if_packet.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue