linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / xtensa / kernel / ptrace.c
index 9aea23c..4cc8528 100644 (file)
@@ -13,6 +13,7 @@
  * Marc Gauthier<marc@tensilica.com> <marc@alumni.uwaterloo.ca>
  */
 
+#include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/mm.h>
@@ -212,7 +213,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
         */
        case PTRACE_KILL:
                ret = 0;
-               if (child->exit_state == EXIT_ZOMBIE)   /* already dead */
+               if (child->state == EXIT_ZOMBIE)        /* already dead */
                        break;
                child->exit_code = SIGKILL;
                child->ptrace &= ~PT_SINGLESTEP;