diff --git a/malloc/tst-malloc-stats-cancellation.c b/malloc/tst-malloc-stats-cancellation.c index 9a8f475830..725cad6498 100644 --- a/malloc/tst-malloc-stats-cancellation.c +++ b/malloc/tst-malloc-stats-cancellation.c @@ -91,8 +91,8 @@ buffer_threadproc (void *argp) } -int -main (void) +static int +do_test (void) { int result = 0, err, real_stderr_fd, bufpipe[2]; pthread_t t_thr, b_thr; @@ -214,3 +214,5 @@ main (void) } return result; } + +#include