--- ./kernel/cpt/cpt_process.c.compat 2007-01-30 11:51:55.000000000 +0300 +++ ./kernel/cpt/cpt_process.c 2007-01-30 12:07:33.000000000 +0300 @@ -654,7 +654,7 @@ static int dump_one_process(cpt_object_t ktime_t e; if (tsk->thread_info->restart_block.fn != nanosleep_restart -#ifdef CONFIG_X86_64 +#if defined(CONFIG_X86_64) && defined(CONFIG_COMPAT) && tsk->thread_info->restart_block.fn != compat_nanosleep_restart #endif ) { @@ -663,7 +663,7 @@ static int dump_one_process(cpt_object_t return -EINVAL; } v->cpt_restart.fn = CPT_RBL_NANOSLEEP; -#ifdef CONFIG_X86_64 +#if defined(CONFIG_X86_64) && defined(CONFIG_COMPAT) if (tsk->thread_info->restart_block.fn == compat_nanosleep_restart) v->cpt_restart.fn = CPT_RBL_COMPAT_NANOSLEEP; #endif