Ignacio Caamaño <[email protected]>
writes:

> Trying to build GNU Mdk, gime me this error:
>
> -----------------------------------------------------------------------------------------------------------------------
> mix.c: In function 'mix_stat_dir':
> mix.c:79:30: error: too many arguments to function 'mkdir'
>        if (errno != ENOENT || mkdir (dirname, S_IRWXU | S_IRWXG | S_IRWXO))
>                               ^
> In file included from
> C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:14:0,
>                  from mix.c:23:
> C:/msys64/mingw64/x86_64-w64-mingw32/include/io.h:271:15: note: declared
> here
>    int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
> ------------------------------------------------------------------------------------------------------------------------
>
> With my poor knowledge of C I try to change mix.c, but other errors occur.
>
> Someone know how to build GNU Mdk ?

On Windows `mkdir' takes only one argument: the directory name to be
created. So try changing

mkdir (dirname, S_IRWXU | S_IRWXG | S_IRWXO)

to

mkdir (dirname)

Note that this is a blind fix, the software might depend on the correct
setting of flags (the removed part) to work properly.


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to