summaryrefslogtreecommitdiff
path: root/test/stdlib/test-mkostemp-O_CLOEXEC.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/stdlib/test-mkostemp-O_CLOEXEC.c')
-rw-r--r--test/stdlib/test-mkostemp-O_CLOEXEC.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/stdlib/test-mkostemp-O_CLOEXEC.c b/test/stdlib/test-mkostemp-O_CLOEXEC.c
index 5652086bd..9ff229af1 100644
--- a/test/stdlib/test-mkostemp-O_CLOEXEC.c
+++ b/test/stdlib/test-mkostemp-O_CLOEXEC.c
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE_EXTENDED
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -8,6 +9,10 @@
#include <sys/wait.h>
#include <errno.h>
+#if !defined __ARCH_USE_MMU__
+# define fork vfork
+#endif
+
int main(int argc, char *argv[]) {
int fd, status;
char buff[5];