From fc37dc194461df7cc2b95f8d0d3764cbcfee2120 Mon Sep 17 00:00:00 2001 From: Sagar Bijwe Date: Wed, 14 Nov 2018 18:10:24 +0530 Subject: [PATCH] nvs_flash: Fix compilation of host testcases when g++-8.x is used. When std::bind is used, it requires inclusion of header. This was not mandatory with earlier versions of g++ (4.x), may be because they had experimental support for c++11. --- components/nvs_flash/test_nvs_host/test_spi_flash_emulation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/components/nvs_flash/test_nvs_host/test_spi_flash_emulation.cpp b/components/nvs_flash/test_nvs_host/test_spi_flash_emulation.cpp index 0c77aa9669..28ee377d37 100644 --- a/components/nvs_flash/test_nvs_host/test_spi_flash_emulation.cpp +++ b/components/nvs_flash/test_nvs_host/test_spi_flash_emulation.cpp @@ -14,6 +14,7 @@ #include "catch.hpp" #include "esp_spi_flash.h" #include "spi_flash_emulation.h" +#include using namespace std;