diff options
Diffstat (limited to 'nuttx/libc/spawn/lib_psfa_adddup2.c')
-rw-r--r-- | nuttx/libc/spawn/lib_psfa_adddup2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/libc/spawn/lib_psfa_adddup2.c b/nuttx/libc/spawn/lib_psfa_adddup2.c index deb3cbdb3..a10f476f1 100644 --- a/nuttx/libc/spawn/lib_psfa_adddup2.c +++ b/nuttx/libc/spawn/lib_psfa_adddup2.c @@ -46,6 +46,8 @@ #include <nuttx/spawn.h> +#include "lib_internal.h" + /**************************************************************************** * Global Functions ****************************************************************************/ @@ -84,7 +86,7 @@ int posix_spawn_file_actions_adddup2(FAR posix_spawn_file_actions_t *file_action /* Allocate the action list entry */ entry = (FAR struct spawn_dup2_file_action_s *) - zalloc(sizeof(struct spawn_close_file_action_s)); + lib_zalloc(sizeof(struct spawn_close_file_action_s)); if (!entry) { |