plug-ins: fix build failure on Windows due to incompatible mkdir call in script-fu
On Windows mkdir only accepts one parameter. Fix this by using g_mkdir which takes care of platform specific details internally.
This commit is contained in:
@ -274,7 +274,7 @@ pointer foreign_mkdir(scheme *sc, pointer args)
|
||||
else
|
||||
mode = 0777;
|
||||
|
||||
retcode = mkdir(dirname, (mode_t)mode);
|
||||
retcode = g_mkdir(dirname, (mode_t)mode);
|
||||
if (retcode == 0)
|
||||
return sc->T;
|
||||
else
|
||||
|
Reference in New Issue
Block a user