summaryrefslogtreecommitdiff
path: root/test/unistd/errno.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/unistd/errno.c')
-rw-r--r--test/unistd/errno.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unistd/errno.c b/test/unistd/errno.c
index cb082b890..c77f58aa2 100644
--- a/test/unistd/errno.c
+++ b/test/unistd/errno.c
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include <errno.h>
#include <sched.h>
+#include "clone_cruft.h"
int child_fn(void *arg)
{
@@ -15,7 +16,7 @@ int main(void)
{
int r_clone, ret_errno;
- r_clone = clone(child_fn, NULL, (int) NULL, NULL);
+ r_clone = do_clone(child_fn, NULL, (int) NULL, NULL);
ret_errno = errno;
if (ret_errno != EINVAL || r_clone != -1) {
fprintf(stderr, "clone: res=%d (wanted -1) errno=%d (wanted %d)\n",