summaryrefslogtreecommitdiffstats
path: root/tests/deleted.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/deleted.c')
-rw-r--r--tests/deleted.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/deleted.c b/tests/deleted.c
index 6be35bc2..f11cb1b6 100644
--- a/tests/deleted.c
+++ b/tests/deleted.c
@@ -29,6 +29,18 @@
extern void libfunc (void);
+#if !HAVE_DECL_FORK
+
+int
+main (int argc __attribute__ ((unused)), char **argv)
+{
+ fprintf (stderr, "%s: fork() not supported for this architecture\n",
+ argv[0]);
+ return 77;
+}
+
+#else
+
int
main (int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)))
{
@@ -56,3 +68,5 @@ main (int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)))
printf ("%d\n", pid);
return EXIT_SUCCESS;
}
+
+#endif