* sim/cris/c/clone5.c, sim/cris/c/mprotect1.c,
[deliverable/binutils-gdb.git] / sim / testsuite / sim / cris / c / mprotect1.c
index ef249ec691fdfb64d32dbad87bf3ff1124980b5c..01d9519da3c479fc8970de4882763704949e8a38 100644 (file)
@@ -7,10 +7,13 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <sys/mman.h>
+#include <errno.h>
 
 int main (int argc, char *argv[])
 {
-  mprotect (0, 8193, PROT_EXEC);
+  int err = mprotect (0, 8193, PROT_EXEC);
+  if (err == -1 && errno == ENOSYS)
+    printf ("ENOSYS\n");
   printf ("xyzzy\n");
   exit (0);
 }
This page took 0.023339 seconds and 4 git commands to generate.