diff --git a/nimble/host/mesh/include/mesh/glue.h b/nimble/host/mesh/include/mesh/glue.h index d9440ad14..7ace07524 100644 --- a/nimble/host/mesh/include/mesh/glue.h +++ b/nimble/host/mesh/include/mesh/glue.h @@ -29,7 +29,6 @@ #include "os/os_mbuf.h" #include "os/queue.h" -#include "atomic.h" #include "nimble/ble.h" #include "host/ble_hs.h" #include "host/ble_uuid.h" diff --git a/nimble/host/mesh/include/mesh/atomic.h b/nimble/host/mesh/src/atomic.h similarity index 100% rename from nimble/host/mesh/include/mesh/atomic.h rename to nimble/host/mesh/src/atomic.h diff --git a/nimble/host/mesh/src/net.h b/nimble/host/mesh/src/net.h index f32649470..c08625ebd 100644 --- a/nimble/host/mesh/src/net.h +++ b/nimble/host/mesh/src/net.h @@ -21,6 +21,7 @@ #define BT_MESH_KEY_REFRESH(flags) (flags & 0x01) #include +#include "atomic.h" #include "mesh/mesh.h" #include "mesh/glue.h" diff --git a/nimble/host/mesh/src/prov.c b/nimble/host/mesh/src/prov.c index f4239e3c8..10617924c 100644 --- a/nimble/host/mesh/src/prov.c +++ b/nimble/host/mesh/src/prov.c @@ -9,7 +9,6 @@ #if MYNEWT_VAL(BLE_MESH_PROV) == 1 #include -#include "mesh/atomic.h" #define BT_DBG_ENABLED (MYNEWT_VAL(BLE_MESH_DEBUG_PROV)) #include "host/ble_hs_log.h" @@ -20,6 +19,7 @@ #include #include "crypto.h" +#include "atomic.h" #include "adv.h" #include "net.h" #include "access.h"