Fix build on linux, enable build directory support

Specifically:

- Include stddef.h for missing ptrdiff_t
- Define PCAP_OPENFLAG_PROMISCUOUS if not using WinPcap because it seems to be
  a WinPcap extension
- Make use of CMAKE_CURRENT_{SOURCE,BINARY}_DIR to enable building under a
  directory other than root of the project
This commit is contained in:
dogtopus
2017-12-22 12:29:34 -04:00
parent 9336e15197
commit 549bcf6d71
3 changed files with 10 additions and 2 deletions

View File

@ -23,6 +23,9 @@
#include "WifiAP.h"
#include "Platform.h"
#ifndef __WIN32__
#include <stddef.h>
#endif
namespace WifiAP
{