From 4b9ec73e9966428bdb8a17f4f7737f7b1634d672 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 12 Aug 2005 09:26:59 +0000 Subject: [PATCH] We need to override the virtual close_fd() in BFile for binary compatibility (bug #43). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13937 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/storage/File.h | 1 + src/kits/storage/File.cpp | 9 +++++++++ 2 files changed, 10 insertions(+) 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