diff options
Diffstat (limited to 'libc/unistd')
-rw-r--r-- | libc/unistd/daemon.c | 1 | ||||
-rw-r--r-- | libc/unistd/exec.c | 2 | ||||
-rw-r--r-- | libc/unistd/getpass.c | 1 | ||||
-rw-r--r-- | libc/unistd/usershell.c | 1 |
4 files changed, 4 insertions, 1 deletions
diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c index cd8a9de9c..233dbbac4 100644 --- a/libc/unistd/daemon.c +++ b/libc/unistd/daemon.c @@ -25,6 +25,7 @@ #define dup2 __dup2 #define setsid __setsid +#define chdir __chdir #include <stdio.h> #include <features.h> diff --git a/libc/unistd/exec.c b/libc/unistd/exec.c index 9793d9ad4..052728d83 100644 --- a/libc/unistd/exec.c +++ b/libc/unistd/exec.c @@ -205,7 +205,7 @@ int execlp(const char *file, const char *arg, ...) } while (--n); va_end(args); - n = execvp(file, (char *const *) argv); + n = __execvp(file, (char *const *) argv); EXEC_FREE(argv, size); diff --git a/libc/unistd/getpass.c b/libc/unistd/getpass.c index 2b2d252c2..8a23c99bf 100644 --- a/libc/unistd/getpass.c +++ b/libc/unistd/getpass.c @@ -19,6 +19,7 @@ #define setvbuf __setvbuf #define tcsetattr __tcsetattr #define tcgetattr __tcgetattr +#define fileno __fileno #include <stdio.h> #include <string.h> diff --git a/libc/unistd/usershell.c b/libc/unistd/usershell.c index 40c8b9e24..2e1f75d38 100644 --- a/libc/unistd/usershell.c +++ b/libc/unistd/usershell.c @@ -31,6 +31,7 @@ */ #define __fsetlocking __fsetlocking_internal +#define fileno __fileno #define _GNU_SOURCE #include <sys/param.h> |