Fix building when you have both WINDOWS and POSIX mkdir detected. (#11523)

* Fix building when you have both WINDOWS and POSIX mkdir detected.
This commit is contained in:
jonjenssen 2024-06-20 07:16:02 +02:00 committed by GitHub
parent 812097cc3d
commit 9a2be684a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4620,13 +4620,11 @@ bool util_is_abs_path(const char * path) {
}
static int util_mkdir( const char * path ) {
#ifdef HAVE_POSIX_MKDIR
#if defined(HAVE_WINDOWS_MKDIR)
return _mkdir(path);
#elif defined(HAVE_POSIX_MKDIR)
return mkdir( path , UTIL_DEFAULT_MKDIR_MODE );
#endif
#ifdef HAVE_WINDOWS_MKDIR
return _mkdir( path );
#endif
}
/*