syscall/ and related: Fix an error found in build testing. Inconsistent conditional compilation led to link errors in certain configurations.

This commit is contained in:
Gregory Nutt
2019-08-27 16:41:07 -06:00
parent ac151e05e7
commit 5f02b0335f
6 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -42,7 +42,7 @@
#include <spawn.h>
#include <nuttx/spawn.h>
#if defined(CONFIG_BUILD_PROTECTED) && defined(CONFIG_LIB_SYSCALL)
#ifdef CONFIG_BUILD_PROTECTED
/****************************************************************************
* Public Functions
@@ -91,4 +91,4 @@ int task_spawn(FAR pid_t *pid, FAR const char *name, main_t entry,
return nx_task_spawn(&parms);
}
#endif /* CONFIG_BUILD_PROTECTED && CONFIG_LIB_SYSCALL */
#endif /* CONFIG_BUILD_PROTECTED */