diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-11-26 19:15:17 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-11-26 19:15:17 +0000 |
commit | 0a707c79e9fb7f5f4d4c3ec0d21a559ba848f12a (patch) | |
tree | 89ec7be4b161c4f783a3ded1a78690485cae27b5 /newlib/libc/include/sys/unistd.h | |
parent | f25babdf0723698552fe84e82a6fccf099f505cb (diff) | |
download | cygnal-0a707c79e9fb7f5f4d4c3ec0d21a559ba848f12a.tar.gz cygnal-0a707c79e9fb7f5f4d4c3ec0d21a559ba848f12a.tar.bz2 cygnal-0a707c79e9fb7f5f4d4c3ec0d21a559ba848f12a.zip |
2003-11-26 Corinna Vinschen <corinna@vinschen.de>
* libc/include/fcntl.h: Declare syscalls only when building newlib.
* libc/include/unistd.h: Ditto.
* libc/include/stat.h: Ditto. Also declare struct stat64.
Diffstat (limited to 'newlib/libc/include/sys/unistd.h')
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index ee6bec0b3..e86895928 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -165,6 +165,7 @@ extern char *suboptarg; /* getsubopt(3) external variable */ int getsubopt(char **, char * const *, char **); #endif /* _POSIX_SOURCE */ +#ifdef _COMPILING_NEWLIB /* Provide prototypes for most of the _<systemcall> names that are provided in newlib for some compilers. */ int _EXFUN(_close, (int __fildes )); @@ -180,6 +181,7 @@ void * _EXFUN(_sbrk, (ptrdiff_t __incr)); int _EXFUN(_unlink, (const char *__path )); _READ_WRITE_RETURN_TYPE _EXFUN(_write, (int __fd, const void *__buf, size_t __nbyte )); int _EXFUN(_execve, (const char *__path, char * const __argv[], char * const __envp[] )); +#endif #if defined(__CYGWIN__) || defined(__rtems__) || defined(__sh__) #if !defined(__INSIDE_CYGWIN__) |