[libdvdcss-devel] [PATCH] build: Replace system-specific ifdeffery by proper _mkdir() check

Diego Biurrun diego at biurrun.de
Thu Feb 14 01:42:16 CET 2013


On Thu, Feb 14, 2013 at 01:22:27AM +0100, Diego Biurrun wrote:
> --- a/configure.ac
> +++ b/configure.ac
> @@ -55,6 +55,8 @@ AC_CHECK_HEADERS(windows.h,[
>  
> +AC_CHECK_FUNCS(_mkdir)
> +
> --- a/src/libdvdcss.c
> +++ b/src/libdvdcss.c
> @@ -128,7 +128,7 @@
>  #include "ioctl.h"
>  #include "device.h"
>  
> -#if defined(WIN32) && !defined(__CYGWIN__)
> +#ifdef HAVE__MKDIR
>  #include <direct.h>
>  #define mkdir(a, b) _mkdir(a)
>  #endif

Fails on Cygwin, which has _mkdir(), but no direct.h.

Diego


More information about the libdvdcss-devel mailing list