mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 13:20:39 +00:00
posix: fix includes in btstack_network_posix.c for freebsd
This commit is contained in:
parent
38d9ec0504
commit
766df38f0f
@ -57,12 +57,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <net/if_arp.h>
|
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||||
|
|
||||||
#ifdef __APPLE__
|
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
#include <net/if_arp.h>
|
||||||
#include <net/if_types.h>
|
#include <net/if_types.h>
|
||||||
|
|
||||||
#include <netinet/if_ether.h>
|
#include <netinet/if_ether.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
@ -85,7 +83,7 @@ static uint8_t network_buffer[BNEP_MTU_MIN];
|
|||||||
static size_t network_buffer_len = 0;
|
static size_t network_buffer_len = 0;
|
||||||
static char tap_dev_name[16];
|
static char tap_dev_name[16];
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||||
// tuntaposx provides fixed set of tapX devices
|
// tuntaposx provides fixed set of tapX devices
|
||||||
static const char * tap_dev = "/dev/tap0";
|
static const char * tap_dev = "/dev/tap0";
|
||||||
static const char * tap_dev_name_template = "tap0";
|
static const char * tap_dev_name_template = "tap0";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user