Skip to content

Commit

Permalink
(via Mbed OS) mbedtls_stub: Add missing include (ARMmbed#134)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Arto Kinnunen and rwalton-arm authored Jun 22, 2021
1 parent c021690 commit bbe0173
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/coap-service/unittest/stub/mbedtls_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* limitations under the License.
*/

#include <string.h> // memset
#include "mbedtls_stub.h"

mbedtls_stub_def mbedtls_stub;
Expand Down

0 comments on commit bbe0173

Please sign in to comment.