diff --git a/src/kits/storage/PathMonitor.cpp b/src/kits/storage/PathMonitor.cpp index 3212798834..8485f32f51 100644 --- a/src/kits/storage/PathMonitor.cpp +++ b/src/kits/storage/PathMonitor.cpp @@ -40,12 +40,27 @@ using namespace std; namespace BPrivate { +#if __GNUC__ > 3 + bool operator<(const node_ref& a, const node_ref& b); + class node_ref_less : public binary_function + { + public: + bool operator() (const node_ref& a, const node_ref& b) const + { + return a < b; + } + }; + typedef set FileSet; +#else + typedef set FileSet; +#endif + struct watched_directory { node_ref node; bool contained; }; typedef set DirectorySet; -typedef set FileSet; + class PathHandler; typedef map HandlerMap;