Commit cb54fb36 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix MariaDB wasnings on Windows (rmdir not defined unless direct.h is included)

parent 6df1d671
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
#include "../maria_def.h" #include "../maria_def.h"
#include <my_dir.h> #include <my_dir.h>
#ifdef _WIN32
#include <direct.h> /* rmdir */
#endif
my_bool maria_log_remove(const char *testdir) my_bool maria_log_remove(const char *testdir)
{ {
......
...@@ -15,7 +15,9 @@ ...@@ -15,7 +15,9 @@
#include <m_string.h> #include <m_string.h>
#include "../ma_pagecache.h" #include "../ma_pagecache.h"
#ifdef _WIN32
#include <direct.h>
#endif
/* /*
File content descriptor File content descriptor
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment