diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 4210510be..d754077b1 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1754,7 +1754,6 @@ fhandler_base::closedir (DIR *) int fhandler_base::fchmod (mode_t mode) { - extern int chmod_device (path_conv& pc, mode_t mode); if (pc.is_fs_special ()) return chmod_device (pc, mode); /* By default, just succeeds. */ diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 32381a0b0..197f04f58 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -698,7 +698,6 @@ out: int __reg1 fhandler_disk_file::fchmod (mode_t mode) { - extern int chmod_device (path_conv& pc, mode_t mode); int ret = -1; int oret = 0; NTSTATUS status; diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index de9bfacda..887d54fa6 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -178,6 +178,7 @@ extern struct per_process_cxx_malloc default_cygwin_cxx_malloc; /* various events */ void events_init (); +int chmod_device (class path_conv& pc, mode_t mode); void __stdcall close_all_files (bool = false); /* debug_on_trap support. see exceptions.cc:try_to_debug() */