[Python-checkins] CVS: python/dist/src/Modules timemodule.c,2.108,2.109

Tim Peters tim_one@users.sourceforge.net
Mon, 19 Mar 2001 19:26:51 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv562/python/dist/src/Modules

Modified Files:
	timemodule.c 
Log Message:
SF patch 407758, "timemodule patches for Cygwin", from Norman Vine.
http://sourceforge.net/tracker/?func=detail&aid=407758&group_id=5470&atid=305470


Index: timemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/timemodule.c,v
retrieving revision 2.108
retrieving revision 2.109
diff -C2 -r2.108 -r2.109
*** timemodule.c	2001/03/06 12:12:02	2.108
--- timemodule.c	2001/03/20 03:26:49	2.109
***************
*** 665,668 ****
--- 665,675 ----
  #endif /* macintosh */
  #endif /* HAVE_TM_ZONE */
+ #ifdef __CYGWIN__
+ 	tzset();
+ 	ins(d, "timezone", PyInt_FromLong(_timezone));
+ 	ins(d, "altzone", PyInt_FromLong(_timezone));
+ 	ins(d, "daylight", PyInt_FromLong(_daylight));
+ 	ins(d, "tzname", Py_BuildValue("(zz)", _tzname[0], _tzname[1]));
+ #endif /* __CYGWIN__ */
  #endif /* !HAVE_TZNAME || __GLIBC__ */
  }