Skip to content

Commit 31926c8

Browse files
committed
mbedtls_stub: Add missing include
mbedtls_stub uses memset but doesn't add the <string.h> include. This causes build failures with clang. Add the include so we can build unit tests using clang.
1 parent 125f584 commit 31926c8

File tree

1 file changed

+1
-0
lines changed
  • connectivity/nanostack/coap-service/test/coap-service/unittest/stub

1 file changed

+1
-0
lines changed

connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18+
#include <string.h> // memset
1819
#include "mbedtls_stub.h"
1920

2021
mbedtls_stub_def mbedtls_stub;

0 commit comments

Comments
 (0)