[gimp/gimp-2-10] plug-ins: fix build failure on Windows due to incompatible mkdir call in script-fu
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] plug-ins: fix build failure on Windows due to incompatible mkdir call in script-fu
- Date: Mon, 9 Aug 2021 22:13:01 +0000 (UTC)
commit fb099cbf2ac3d0a60605040ab9c01a225e57c509
Author: Jacob Boerema <jgboerema gmail com>
Date: Mon Aug 9 18:11:30 2021 -0400
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.
plug-ins/script-fu/ftx/ftx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plug-ins/script-fu/ftx/ftx.c b/plug-ins/script-fu/ftx/ftx.c
index b1c1aa745e..f9de1bfdcc 100644
--- a/plug-ins/script-fu/ftx/ftx.c
+++ b/plug-ins/script-fu/ftx/ftx.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]