From 5ebef433698a13e5171f4b7dca04f2006bd92468 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 3 Mar 2011 16:04:03 +0100 Subject: provide internal hidden version of __fcntl_nocancel guard the prototype with _LIBC, it is only for internal use Signed-off-by: Peter S. Mazinger --- include/fcntl.h | 3 +++ libc/sysdeps/linux/common/__syscall_fcntl.c | 1 + 2 files changed, 4 insertions(+) diff --git a/include/fcntl.h b/include/fcntl.h index 3a9873461..26ad1fe6d 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -234,7 +234,10 @@ extern int posix_fallocate64 (int __fd, __off64_t __offset, __off64_t __len); # endif #endif +#ifdef _LIBC extern int __fcntl_nocancel (int fd, int cmd, ...); +libc_hidden_proto(__fcntl_nocancel) +#endif __END_DECLS diff --git a/libc/sysdeps/linux/common/__syscall_fcntl.c b/libc/sysdeps/linux/common/__syscall_fcntl.c index 5da3c5f32..6d4c339ab 100644 --- a/libc/sysdeps/linux/common/__syscall_fcntl.c +++ b/libc/sysdeps/linux/common/__syscall_fcntl.c @@ -40,6 +40,7 @@ int __fcntl_nocancel (int fd, int cmd, ...) # endif return INLINE_SYSCALL (fcntl, 3, fd, cmd, arg); } +libc_hidden_def(__fcntl_nocancel) int __libc_fcntl (int fd, int cmd, ...) { -- cgit v1.2.3