diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/posix/execvp.c | 1 | ||||
-rw-r--r-- | newlib/libc/reent/execr.c | 1 | ||||
-rw-r--r-- | newlib/libc/reent/fstatr.c | 1 | ||||
-rw-r--r-- | newlib/libc/reent/openr.c | 1 | ||||
-rw-r--r-- | newlib/libc/reent/signalr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/statr.c | 1 | ||||
-rw-r--r-- | newlib/libc/reent/timer.c | 1 | ||||
-rw-r--r-- | newlib/libc/stdio/remove.c | 1 | ||||
-rw-r--r-- | newlib/libc/stdlib/abort.c | 3 | ||||
-rw-r--r-- | newlib/libc/stdlib/system.c | 4 | ||||
-rw-r--r-- | newlib/libc/stdlib/wctomb_r.c | 1 | ||||
-rw-r--r-- | newlib/libc/unix/getlogin.c | 2 | ||||
-rw-r--r-- | newlib/libc/unix/getut.c | 4 |
13 files changed, 19 insertions, 4 deletions
diff --git a/newlib/libc/posix/execvp.c b/newlib/libc/posix/execvp.c index 15b2e572c..1b30f0760 100644 --- a/newlib/libc/posix/execvp.c +++ b/newlib/libc/posix/execvp.c @@ -6,6 +6,7 @@ #include <_ansi.h> #include <stdlib.h> #include <unistd.h> +#include <string.h> #include <errno.h> #include <ctype.h> diff --git a/newlib/libc/reent/execr.c b/newlib/libc/reent/execr.c index 9e8f75a65..0fbddb94d 100644 --- a/newlib/libc/reent/execr.c +++ b/newlib/libc/reent/execr.c @@ -3,6 +3,7 @@ #include <reent.h> #include <unistd.h> +#include <sys/wait.h> #include <_syslist.h> /* Some targets provides their own versions of these functions. Those diff --git a/newlib/libc/reent/fstatr.c b/newlib/libc/reent/fstatr.c index df132d799..7f5d559da 100644 --- a/newlib/libc/reent/fstatr.c +++ b/newlib/libc/reent/fstatr.c @@ -3,6 +3,7 @@ #include <reent.h> #include <unistd.h> +#include <sys/stat.h> #include <_syslist.h> /* Some targets provides their own versions of these functions. Those diff --git a/newlib/libc/reent/openr.c b/newlib/libc/reent/openr.c index 2e3b608d7..c77310394 100644 --- a/newlib/libc/reent/openr.c +++ b/newlib/libc/reent/openr.c @@ -2,6 +2,7 @@ #include <reent.h> #include <unistd.h> +#include <fcntl.h> #include <_syslist.h> /* Some targets provides their own versions of this functions. Those diff --git a/newlib/libc/reent/signalr.c b/newlib/libc/reent/signalr.c index 7c85af142..3ac3e2cf8 100644 --- a/newlib/libc/reent/signalr.c +++ b/newlib/libc/reent/signalr.c @@ -2,6 +2,8 @@ These implementations just call the usual system calls. */ #include <reent.h> +#include <signal.h> +#include <unistd.h> #include <_syslist.h> /* Some targets provides their own versions of these functions. Those diff --git a/newlib/libc/reent/statr.c b/newlib/libc/reent/statr.c index 55d29bdb8..48a377344 100644 --- a/newlib/libc/reent/statr.c +++ b/newlib/libc/reent/statr.c @@ -3,6 +3,7 @@ #include <reent.h> #include <unistd.h> +#include <sys/stat.h> #include <_syslist.h> /* Some targets provides their own versions of these functions. Those diff --git a/newlib/libc/reent/timer.c b/newlib/libc/reent/timer.c index 526b4d135..689595249 100644 --- a/newlib/libc/reent/timer.c +++ b/newlib/libc/reent/timer.c @@ -6,6 +6,7 @@ #include <reent.h> #include <time.h> +#include <sys/time.h> #include <sys/times.h> #include <_syslist.h> diff --git a/newlib/libc/stdio/remove.c b/newlib/libc/stdio/remove.c index 074dd9ac8..b24ce713f 100644 --- a/newlib/libc/stdio/remove.c +++ b/newlib/libc/stdio/remove.c @@ -45,6 +45,7 @@ Supporting OS subroutine required: <<unlink>>. */ #include <stdio.h> +#include <reent.h> int _remove_r (ptr, filename) diff --git a/newlib/libc/stdlib/abort.c b/newlib/libc/stdlib/abort.c index b3d671ed6..93f7c2f42 100644 --- a/newlib/libc/stdlib/abort.c +++ b/newlib/libc/stdlib/abort.c @@ -43,10 +43,11 @@ RETURNS PORTABILITY ANSI C requires <<abort>>. -Supporting OS subroutines required: <<getpid>>, <<kill>>. +Supporting OS subroutines required: <<_exit>> and optionally, <<write>>. */ #include <stdlib.h> +#include <unistd.h> #include <signal.h> _VOID diff --git a/newlib/libc/stdlib/system.c b/newlib/libc/stdlib/system.c index 4584ae180..8a493d008 100644 --- a/newlib/libc/stdlib/system.c +++ b/newlib/libc/stdlib/system.c @@ -56,7 +56,9 @@ Supporting OS subroutines required: <<_exit>>, <<_execve>>, <<_fork_r>>, #include <errno.h> #include <stddef.h> #include <stdlib.h> +#include <unistd.h> #include <_syslist.h> +#include <reent.h> #if defined (unix) || defined (__CYGWIN32__) static int do_system (); @@ -112,7 +114,7 @@ do_system (ptr, s) { char *argv[4]; int pid, status; - extern char *environ[]; + extern char **environ; argv[0] = "sh"; argv[1] = "-c"; diff --git a/newlib/libc/stdlib/wctomb_r.c b/newlib/libc/stdlib/wctomb_r.c index 8fa6e16db..b382c995f 100644 --- a/newlib/libc/stdlib/wctomb_r.c +++ b/newlib/libc/stdlib/wctomb_r.c @@ -1,4 +1,5 @@ #include <stdlib.h> +#include <string.h> #include <locale.h> #include "mbctype.h" diff --git a/newlib/libc/unix/getlogin.c b/newlib/libc/unix/getlogin.c index 7c1f3104e..e043b029f 100644 --- a/newlib/libc/unix/getlogin.c +++ b/newlib/libc/unix/getlogin.c @@ -1,3 +1,5 @@ +#include <string.h> +#include <unistd.h> #include <sys/types.h> #include <utmp.h> #include <fcntl.h> diff --git a/newlib/libc/unix/getut.c b/newlib/libc/unix/getut.c index d8e3e2fec..1e2b75596 100644 --- a/newlib/libc/unix/getut.c +++ b/newlib/libc/unix/getut.c @@ -1,3 +1,5 @@ +#include <stdlib.h> +#include <string.h> #include <fcntl.h> #include <unistd.h> #include <utmp.h> @@ -29,8 +31,6 @@ endutent () void utmpname (_CONST char *file) { - extern char *strdup (char *); - utmp_file = strdup (file); } |