Thanks Oscar. I have tried that after searching in google but other problem
occur:

--------------------------------------------------------------------------------------------------------------------
xmix_io.c: In function 'io_init_from_fdesc_':
xmix_io.c:37:3: warning: implicit declaration of function 'fcntl'
[-Wimplicit-function-declaration]
   int flags = fcntl(fdesc, F_GETFL);
   ^
xmix_io.c:37:28: error: 'F_GETFL' undeclared (first use in this function)
   int flags = fcntl(fdesc, F_GETFL);
                            ^
--------------------------------------------------------------------------------------------------------------------

I tried in this mailing list because maybe there was more general solution
than change the code with
my little knowledge of C.





2015-06-22 14:32 GMT-03:00 Óscar Fuentes <[email protected]>:

> 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
>
------------------------------------------------------------------------------
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