From 766df38f0f4395fc10e176b5f65986fc2001260d Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sat, 11 May 2019 22:24:44 +0200 Subject: [PATCH] posix: fix includes in btstack_network_posix.c for freebsd --- platform/posix/btstack_network_posix.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/platform/posix/btstack_network_posix.c b/platform/posix/btstack_network_posix.c index a55923ab1..1c9d9c280 100644 --- a/platform/posix/btstack_network_posix.c +++ b/platform/posix/btstack_network_posix.c @@ -57,12 +57,10 @@ #include #include -#include - -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(__FreeBSD__) #include +#include #include - #include #include #endif @@ -85,7 +83,7 @@ static uint8_t network_buffer[BNEP_MTU_MIN]; static size_t network_buffer_len = 0; static char tap_dev_name[16]; -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(__FreeBSD__) // tuntaposx provides fixed set of tapX devices static const char * tap_dev = "/dev/tap0"; static const char * tap_dev_name_template = "tap0";