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/fcntl.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/fcntl.h')
-rw-r--r-- | newlib/libc/include/sys/fcntl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/fcntl.h b/newlib/libc/include/sys/fcntl.h index f358a8fab..4cb12a368 100644 --- a/newlib/libc/include/sys/fcntl.h +++ b/newlib/libc/include/sys/fcntl.h @@ -169,11 +169,13 @@ extern int fcntl _PARAMS ((int, int, ...)); /* Provide _<systemcall> prototypes for functions provided by some versions of newlib. */ +#ifdef _COMPILING_NEWLIB extern int _open _PARAMS ((const char *, int, ...)); extern int _fcntl _PARAMS ((int, int, ...)); #ifdef __LARGE64_FILES extern int _open64 _PARAMS ((const char *, int, ...)); #endif +#endif #ifdef __cplusplus } |