summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/unistd/exec.c b/libc/unistd/exec.c
index eaf6a40aa..0c90f376d 100644
--- a/libc/unistd/exec.c
+++ b/libc/unistd/exec.c
@@ -45,7 +45,6 @@ libc_hidden_proto(execvp)
libc_hidden_proto(memcpy)
libc_hidden_proto(strchr)
libc_hidden_proto(strlen)
-libc_hidden_proto(strchrnul)
libc_hidden_proto(execve)
libc_hidden_proto(mmap)
libc_hidden_proto(munmap)
@@ -220,6 +219,8 @@ int execlp(const char *file, const char *arg, ...)
/**********************************************************************/
#ifdef L_execvp
+libc_hidden_proto(strchrnul)
+
/* Use a default path that matches glibc behavior, since SUSv3 says
* this is implementation-defined. The default is current working dir,
* /bin, and then /usr/bin. */