From 270f65da11a9c0e46af421afed54389dbc8453e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Wed, 28 Dec 2011 00:08:53 +0100 Subject: [PATCH] conf.c: use g_mkdir for WIN32 compatibility This patch is a follow-up to release-0.19-59-g3aea924. --- src/conf.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/conf.c b/src/conf.c index 7f3ddd5..e5c5ab6 100644 --- a/src/conf.c +++ b/src/conf.c @@ -31,10 +31,9 @@ #include #include #include -#include -#include #include #include +#include #define MAX_LINE_LENGTH 1024 #define COMMENT_TOKEN '#' @@ -596,11 +595,7 @@ check_user_conf_dir(void) return 0; } -#ifndef WIN32 - retval = mkdir(directory, 0755); -#else - retval = mkdir(directory); -#endif + retval = g_mkdir(directory, 0755); g_free(directory); return retval; } -- 2.30.2