shithub: libdvdcss

Download patch

ref: 0938da8a3ebb4b9e1e3c2383a4821fa8eb524a87
parent: 1fab727ead1c7f84300cae8d077a24c9c9aa83aa
author: Diego Biurrun <diego@biurrun.de>
date: Wed Feb 13 09:43:50 EST 2013

build: Drop unnecessary local SYS_CYGWIN config.h #define

__CYGWIN__ is always available and can be used instead.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>

--- a/configure.ac
+++ b/configure.ac
@@ -27,12 +27,6 @@
     CFLAGS="${CFLAGS} -no-cpp-precomp"
     ;;
   x*cygwin*)
-    dnl Check if we are using the mno-cygwin mode in which case we are
-    dnl actually dealing with a mingw32 compiler.
-    AC_EGREP_CPP(yes, [#ifndef WIN32
-                       yes
-                       #endif],
-                 AC_DEFINE(SYS_CYGWIN, 1, Have a Cygwin system.))
     AC_DEFINE(WIN32, 1, Using Win32.)
     ;;
   xbeos*)
--- a/msvc/config.h
+++ b/msvc/config.h
@@ -39,7 +39,6 @@
 /* #undef SOLARIS_USCSI */
 #define STDC_HEADERS 1
 /* #undef SYS_BEOS */
-/* #undef SYS_CYGWIN */
 #define VERSION "1.2.11"
 /* #undef const */
 /* #undef inline */
--- a/src/device.c
+++ b/src/device.c
@@ -49,7 +49,7 @@
 #   include <limits.h>
 #endif
 
-#if defined( WIN32 ) && !defined( SYS_CYGWIN )
+#if defined( WIN32 ) && !defined( __CYGWIN__ )
 #   include <io.h>                                                 /* read() */
 #else
 #   include <sys/uio.h>                                      /* struct iovec */
--- a/src/device.h
+++ b/src/device.h
@@ -29,7 +29,7 @@
 /*****************************************************************************
  * iovec structure: vectored data entry
  *****************************************************************************/
-#if defined( WIN32 ) && !defined( SYS_CYGWIN )
+#if defined( WIN32 ) && !defined( __CYGWIN__ )
 #   include <io.h>                                                 /* read() */
 #else
 #   include <sys/types.h>
@@ -38,7 +38,7 @@
 
 #include "dvdcss/dvdcss.h"
 
-#if defined( WIN32 ) && !defined( SYS_CYGWIN )
+#if defined( WIN32 ) && !defined( __CYGWIN__ )
 struct iovec
 {
     void *iov_base;     /* Pointer to data. */