summaryrefslogtreecommitdiff
path: root/ndb/src/common/util/File.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ndb/src/common/util/File.cpp')
-rw-r--r--ndb/src/common/util/File.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/ndb/src/common/util/File.cpp b/ndb/src/common/util/File.cpp
index f3faa8c4f7f..15698db3bc9 100644
--- a/ndb/src/common/util/File.cpp
+++ b/ndb/src/common/util/File.cpp
@@ -17,8 +17,8 @@
#include <ndb_global.h>
#include <File.hpp>
-
#include <NdbOut.hpp>
+#include <my_dir.h>
//
// PUBLIC
@@ -28,9 +28,14 @@ bool
File_class::exists(const char* aFileName)
{
bool rc = true;
-
+
+#ifdef USE_MY_STAT_STRUCT
+ struct my_stat stmp;
+#else
struct stat stmp;
- if (::stat(aFileName, &stmp) != 0)
+#endif
+
+ if (my_stat(aFileName, &stmp, MYF(0)) != 0)
{
rc = false;
}