Changes to make work on Cygwin. However probably need a more general

test for timezone being extern long.
This commit is contained in:
rocky
2005-10-27 03:03:42 +00:00
parent 8881e6b50d
commit 2ee302e4f8
3 changed files with 31 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ define(RELEASE_NUM, 77)
define(CDIO_VERSION_STR, 0.$1cvs)
AC_PREREQ(2.52)
AC_REVISION([$Id: configure.ac,v 1.177 2005/10/25 14:16:41 pjcreath Exp $])dnl
AC_REVISION([$Id: configure.ac,v 1.178 2005/10/27 03:03:42 rocky Exp $])dnl
AC_INIT(libcdio, CDIO_VERSION_STR(RELEASE_NUM))
AC_CONFIG_SRCDIR(src/cd-info.c)
@@ -407,6 +407,9 @@ int has_timeout=sizeof(test.timeout);],
[Define 1 if you have MinGW CD-ROM support])
LIBS="$LIBS -lwinmm"
cd_drivers="${cd_drivers}, MinGW"
AC_DEFINE([NEED_TIMEZONEVAR], [1],
[Define 1 if you need timezone defined to get timzone
defined as a variable. In cygwin it is a function too])
;;
mingw*)
AC_DEFINE([MINGW32], [1],

View File

@@ -1,5 +1,5 @@
/*
$Id: udf_private.h,v 1.2 2005/10/26 02:05:54 rocky Exp $
$Id: udf_private.h,v 1.3 2005/10/27 03:03:43 rocky Exp $
Copyright (C) 2005 Rocky Bernstein <rocky@panix.com>
@@ -18,6 +18,13 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __CDIO_UDF_PRIVATE_H__
#define __CDIO_UDF_PRIVATE_H__
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <cdio/types.h>
#include <cdio/ecma_167.h>
#include <cdio/udf.h>
@@ -55,3 +62,13 @@ struct udf_file_s
udf_fileid_desc_t *fid;
};
#endif /* __CDIO_UDF_PRIVATE_H__ */
/*
* Local variables:
* c-file-style: "gnu"
* tab-width: 8
* indent-tabs-mode: nil
* End:
*/

View File

@@ -39,8 +39,16 @@
* http://www.boulder.nist.gov/timefreq/pubs/bulletin/leapsecond.htm
*/
#include <cdio/udf.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef NEED_TIMEZONEVAR
#define timezonevar 1
#endif
#include "udf_private.h"
#include <cdio/udf.h>
#define EPOCH_YEAR 1970