[libdvdcss-devel] Win32: Fix broken mkdir() invocations that need to be mapped to _mkdir()

Alexander Strasser eclipse7 at gmx.net
Mon Feb 11 21:10:23 CET 2013


Diego Biurrun wrote:
> libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Feb 11 01:21:26 2013 +0100| [1fab727ead1c7f84300cae8d077a24c9c9aa83aa] | committer: Jean-Baptiste Kempf
> 
> Win32: Fix broken mkdir() invocations that need to be mapped to _mkdir()
> 
> Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> 
> > http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=1fab727ead1c7f84300cae8d077a24c9c9aa83aa
> ---
> 
>  src/libdvdcss.c |   12 ++++--------
>  1 file changed, 4 insertions(+), 8 deletions(-)
> 
> diff --git a/src/libdvdcss.c b/src/libdvdcss.c
> index 01eafef..4a09084 100644
> --- a/src/libdvdcss.c
> +++ b/src/libdvdcss.c
> @@ -132,6 +132,10 @@
>  #include "ioctl.h"
>  #include "device.h"
>  
> +#if defined(WIN32)
> +#define mkdir(a, b) _mkdir(a)
> +#endif

  I guess this renders direct.h necessary for MSVC. I believe
the code was broken before though.

  For MinGW direct.h might not be necessary if I remember my
latest tests correctly. But merely including it won't hurt for
MinGW nor OS/2 AFAICT.

  Alexander


More information about the libdvdcss-devel mailing list