diff --git a/headers/os/storage/File.h b/headers/os/storage/File.h index f9c7f187bd..8dcfd94482 100644 --- a/headers/os/storage/File.h +++ b/headers/os/storage/File.h @@ -72,6 +72,7 @@ private: private: int get_fd() const; + virtual void close_fd(); private: //! The file's open mode. diff --git a/src/kits/storage/File.cpp b/src/kits/storage/File.cpp index d3961bed84..3e82604cf1 100644 --- a/src/kits/storage/File.cpp +++ b/src/kits/storage/File.cpp @@ -507,6 +507,15 @@ BFile::get_fd() const return fFd; } +// close_fd +/*! Overrides BNode::close_fd() solely for R5 binary compatibility. +*/ +void +BFile::close_fd() +{ + BNode::close_fd(); +} + #ifdef USE_OPENBEOS_NAMESPACE }; // namespace OpenBeOS