[libdvdcss-devel] [PATCH] build: Replace system-specific ifdeffery by proper mkdir() check
Diego Biurrun
diego at biurrun.de
Thu Feb 14 02:02:37 CET 2013
Signed-off-by: Diego Biurrun <diego at biurrun.de>
---
Now checking for mkdir() instead of _mkdir(), this works on Cygwin.
configure.ac | 2 ++
src/libdvdcss.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index f9e6b84..4912dba 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..4c2aa23 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -128,7 +128,7 @@
#include "ioctl.h"
#include "device.h"
-#if defined(WIN32) && !defined(__CYGWIN__)
+#ifndef HAVE_MKDIR
#include <direct.h>
#define mkdir(a, b) _mkdir(a)
#endif
--
1.7.9.5
More information about the libdvdcss-devel
mailing list