- Windows: #define mkdir(A, B) mkdir(A)
mkdir() has only got one argument under Windows
#include <sys/stat.h>
#include <io.h>
#include <fcntl.h>
+#define mkdir(A, B) mkdir(A) /* mkdir() has only got one argument under Windows */
#endif
#include "rrd_tool.h"
}
exit(0);
}
-/* MinGW-w64 has not got getuid() and only 1 argument for mkdir() */
-#if defined(HAVE_OPENDIR) && defined(HAVE_READDIR) && defined(HAVE_CHDIR) && defined(HAVE_SYS_STAT_H) && !defined(__MINGW32__)
+#if defined(HAVE_OPENDIR) && defined(HAVE_READDIR) && defined(HAVE_CHDIR) && defined(HAVE_SYS_STAT_H)
if (argc > 1 && strcmp("cd", argv[1]) == 0) {
if (argc != 3) {
printf("ERROR: invalid parameter count for cd\n");