Skip to content

Commit bbe0173

Browse files
Arto Kinnunenrwalton-arm
andauthored
(via Mbed OS) mbedtls_stub: Add missing include (ARMmbed#134)
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. Co-authored-by: Robert Walton <rob.walton@arm.com>
1 parent c021690 commit bbe0173

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)