binfmt/exec: fix build break in kernel build

This commit is contained in:
chao.an 2020-02-21 22:12:25 +08:00 committed by Gregory Nutt
parent f7ef08cdc1
commit a07ad7a115

View File

@ -139,10 +139,12 @@ int exec_spawn(FAR const char *filename, FAR char * const *argv,
bin->priority = attr->priority;
}
#ifndef CONFIG_BUILD_KERNEL
if (attr->stacksize > 0)
{
bin->stacksize = attr->stacksize;
}
#endif
}
/* Disable pre-emption so that the executed module does