Browse Source

provide internal hidden version of __fcntl_nocancel

guard the prototype with _LIBC, it is only for internal use

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger 13 years ago
parent
commit
5ebef43369
2 changed files with 4 additions and 0 deletions
  1. 3 0
      include/fcntl.h
  2. 1 0
      libc/sysdeps/linux/common/__syscall_fcntl.c

+ 3 - 0
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
 

+ 1 - 0
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, ...)
 {