shithub: libdvdcss

Download patch

ref: b1486f807e7429794eb1adf0b8427ff119e9d3f6
parent: d2edf451feb3e8762c4895665bc356f5f9bb12a9
author: Boris Dorès <babal@videolan.org>
date: Thu Dec 5 19:16:57 EST 2002

- Early versions of Mingw32 (at least until 1.2) do not include
  <limits.h> automatically, so PATH_MAX was undefined.


--- a/src/css.c
+++ b/src/css.c
@@ -2,7 +2,7 @@
  * css.c: Functions for DVD authentication and descrambling
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: css.c,v 1.21 2002/12/05 10:24:42 sam Exp $
+ * $Id: css.c,v 1.22 2002/12/06 00:16:57 babal Exp $
  *
  * Author: St�phane Borel <stef@via.ecp.fr>
  *         H�kan Hjort <d95hjort@dtek.chalmers.se>
@@ -44,6 +44,10 @@
 #   include <sys/param.h>
 #endif
 #include <fcntl.h>
+
+#ifdef __MINGW_H
+#   include <limits.h>
+#endif
 
 #include "dvdcss/dvdcss.h"
 
--- a/src/device.c
+++ b/src/device.c
@@ -2,7 +2,7 @@
  * device.h: DVD device access
  *****************************************************************************
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: device.c,v 1.8 2002/12/05 10:24:42 sam Exp $
+ * $Id: device.c,v 1.9 2002/12/06 00:16:57 babal Exp $
  *
  * Authors: St�phane Borel <stef@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -40,6 +40,10 @@
 
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
+#endif
+
+#ifdef __MINGW_H
+#   include <limits.h>
 #endif
 
 #if defined( WIN32 )
--- a/src/error.c
+++ b/src/error.c
@@ -2,7 +2,7 @@
  * error.c: error management functions
  *****************************************************************************
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: error.c,v 1.4 2002/12/05 10:24:42 sam Exp $
+ * $Id: error.c,v 1.5 2002/12/06 00:16:57 babal Exp $
  *
  * Author: Samuel Hocevar <sam@zoy.org>
  *
@@ -26,6 +26,10 @@
 #include <stdio.h>
 #ifdef HAVE_SYS_PARAM_H
 #   include <sys/param.h>
+#endif
+
+#ifdef __MINGW_H
+#   include <limits.h>
 #endif
 
 #include "dvdcss/dvdcss.h"
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -5,7 +5,7 @@
  *          H�kan Hjort <d95hjort@dtek.chalmers.se>
  *
  * Copyright (C) 1998-2002 VideoLAN
- * $Id: libdvdcss.c,v 1.21 2002/12/05 10:24:42 sam Exp $
+ * $Id: libdvdcss.c,v 1.22 2002/12/06 00:16:57 babal Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -104,6 +104,10 @@
 
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
+#endif
+
+#ifdef __MINGW_H
+#   include <limits.h>
 #endif
 
 #include "dvdcss/dvdcss.h"