This feature has been introduced in Linux 3.4,
older kernels do have prctl(2) but know
PR_SET_PTRACER not.
* it will deadlock. Call the syscall directly instead.
*/
pid = mono_runtime_syscall_fork ();
-#if defined (__linux__) && defined (HAVE_PRCTL)
+#if defined (HAVE_PRCTL) && defined(PR_SET_PTRACER)
if (pid > 0) {
// Allow gdb to attach to the process even if ptrace_scope sysctl variable is set to
// a value other than 0 (the most permissive ptrace scope). Most modern Linux