summaryrefslogtreecommitdiff
path: root/nuttx/include/spawn.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-14 08:22:21 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-14 08:22:21 -0600
commit944ae31c93bdce6f00549d261c3654778eca3ece (patch)
treef9c5342f32d07d8031fb2236974c0e54843f489f /nuttx/include/spawn.h
parent41832690401b99c2b3071d392ee4d8a0c915a344 (diff)
downloadnuttx-944ae31c93bdce6f00549d261c3654778eca3ece.tar.gz
nuttx-944ae31c93bdce6f00549d261c3654778eca3ece.tar.bz2
nuttx-944ae31c93bdce6f00549d261c3654778eca3ece.zip
Don't build task_create() or task_spawn() interfaces if there is an addres environment
Diffstat (limited to 'nuttx/include/spawn.h')
-rw-r--r--nuttx/include/spawn.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/include/spawn.h b/nuttx/include/spawn.h
index 7ab9bb498..f994ac51f 100644
--- a/nuttx/include/spawn.h
+++ b/nuttx/include/spawn.h
@@ -89,9 +89,11 @@ struct posix_spawnattr_s
sigset_t sigmask; /* Signals to be masked */
#endif
+#ifndef CONFIG_ARCH_ADDRENV
/* Used only by task_spawn (non-standard) */
size_t stacksize; /* Task stack size */
+#endif
};
typedef struct posix_spawnattr_s posix_spawnattr_t;
@@ -139,6 +141,7 @@ int posix_spawn(FAR pid_t *pid, FAR const char *path,
posix_spawn(pid,path,file_actions,attr,argv,envp)
#endif
+#ifndef CONFIG_ARCH_ADDRENV
/* Non-standard task_spawn interface. This function uses the same
* semantics to execute a file in memory at 'entry', giving it the name
* 'name'.
@@ -148,6 +151,7 @@ int task_spawn(FAR pid_t *pid, FAR const char *name, main_t entry,
FAR const posix_spawn_file_actions_t *file_actions,
FAR const posix_spawnattr_t *attr,
FAR char *const argv[], FAR char *const envp[]);
+#endif
/* File action interfaces ***************************************************/
/* File action initialization and destruction */