diff --git a/lib/shared_memory.cpp b/lib/shared_memory.cpp index ed4c55bd..3eda92ea 100644 --- a/lib/shared_memory.cpp +++ b/lib/shared_memory.cpp @@ -350,14 +350,18 @@ namespace IPC { } /// Returns true if the open file still exists. - /// Not implemented under Windows. + /// \TODO Not implemented under Windows. bool sharedPage::exists(){ +#if defined(__CYGWIN__) || defined(_WIN32) + return true;//Not implemented under Windows... +#else #ifdef SHM_ENABLED struct stat sb; if (fstat(handle, &sb)){return false;} return (sb.st_nlink > 0); #else return true; +#endif #endif }