[libdvdcss-devel] [PATCH] build: Replace system-specific ifdeffery by proper _mkdir() check
Diego Biurrun
diego at biurrun.de
Thu Feb 14 01:22:27 CET 2013
Signed-off-by: Diego Biurrun <diego at biurrun.de>
---
configure.ac | 2 ++
src/libdvdcss.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index f9e6b84..9c2e9c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -55,6 +55,8 @@ AC_CHECK_HEADERS(windows.h,[
])
])
+AC_CHECK_FUNCS(_mkdir)
+
dnl for Un*x and BeOS
AC_CHECK_HEADERS(sys/ioctl.h,[
CAN_BUILD_LIBDVDCSS=1
diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index cd92326..3713c59 100644
--- 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
--
1.7.9.5
More information about the libdvdcss-devel
mailing list