From: Jonathan Neuschäfer Date: Tue, 27 Dec 2011 23:08:53 +0000 (+0100) Subject: conf.c: use g_mkdir for WIN32 compatibility X-Git-Tag: release-0.20~10^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=270f65da11a9c0e46af421afed54389dbc8453e5;p=ncmpc.git conf.c: use g_mkdir for WIN32 compatibility This patch is a follow-up to release-0.19-59-g3aea924. --- 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; }