From 0a707c79e9fb7f5f4d4c3ec0d21a559ba848f12a Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 26 Nov 2003 19:15:17 +0000 Subject: 2003-11-26 Corinna Vinschen * libc/include/fcntl.h: Declare syscalls only when building newlib. * libc/include/unistd.h: Ditto. * libc/include/stat.h: Ditto. Also declare struct stat64. --- newlib/libc/include/sys/fcntl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'newlib/libc/include/sys/fcntl.h') 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 _ 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 } -- cgit v1.2.3