about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/not-cancel.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/not-cancel.h')
-rw-r--r--sysdeps/mach/hurd/not-cancel.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/mach/hurd/not-cancel.h b/sysdeps/mach/hurd/not-cancel.h
index b78870a5b7..c9a67c199d 100644
--- a/sysdeps/mach/hurd/not-cancel.h
+++ b/sysdeps/mach/hurd/not-cancel.h
@@ -40,11 +40,7 @@
 #define __close_nocancel(fd) \
   __close (fd)
 
-static inline void
-__close_nocancel_nostatus (int fd)
-{
-  HURD_FD_USE (fd, _hurd_fd_close (descriptor));
-}
+void __close_nocancel_nostatus (int fd);
 
 #define __read_nocancel(fd, buf, n) \
   __read (fd, buf, n)
@@ -59,4 +55,8 @@ __close_nocancel_nostatus (int fd)
 #define __fcntl64_nocancel(fd, cmd, ...) \
   __fcntl64 (fd, cmd, __VA_ARGS__)
 
+#if IS_IN (libc) || IS_IN (rtld)
+hidden_proto (__close_nocancel_nostatus)
+#endif
+
 #endif /* NOT_CANCEL_H  */