···11+diff --git a/test/rist/unit/srp_examples.c b/test/rist/unit/srp_examples.c
22+index 1c5193d..6f835b5 100644
33+--- a/test/rist/unit/srp_examples.c
44++++ b/test/rist/unit/srp_examples.c
55+@@ -16,6 +16,11 @@
66+ #define DEBUG_USE_EXAMPLE_CONSTANTS 1
77+88+ #if HAVE_MBEDTLS
99++// musl's sched.h includes a prototype for calloc, so we need to make
1010++// sure it's already been included before we redefine it to something
1111++// that won't expand to a valid prototype.
1212++#include <sched.h>
1313++
1414+ #define malloc(size) _test_malloc(size, __FILE__, __LINE__)
1515+ #define calloc(num, size) _test_calloc(num, size, __FILE__, __LINE__)
1616+ #define free(obj) _test_free(obj, __FILE__, __LINE__)