From: corinna Date: Sat, 1 Dec 2007 13:04:43 +0000 (+0000) Subject: * Makefile.in (OBSOLETE_FUNCTIONS): Add timezone. X-Git-Tag: EOL_registry_mounts~1474 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ba76fa2f12c8f4e254f1c9c3f1e618db4b33b163;p=pf3gnuchains%2Fpf3gnuchains4x.git * Makefile.in (OBSOLETE_FUNCTIONS): Add timezone. * include/cygwin/time.h: Drop conditional timezone definitions. (timezone): Declare as extern symbol referring _timezone variable. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index da8f6d120d..5936bdfc3c 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,10 @@ +2007-12-01 Corinna Vinschen + Brian Dessent + + * Makefile.in (OBSOLETE_FUNCTIONS): Add timezone. + * include/cygwin/time.h: Drop conditional timezone definitions. + (timezone): Declare as extern symbol referring _timezone variable. + 2007-11-28 Corinna Vinschen * fhandler_tape.cc (mtinfo::initialize): Use MAX_PATH instead of diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in index 82215a527e..68dc5b35e1 100644 --- a/winsup/cygwin/Makefile.in +++ b/winsup/cygwin/Makefile.in @@ -158,7 +158,7 @@ OBSOLETE_FUNCTIONS:=regcomp regerror regexec regfree regsub \ getgroups getpwuid getpwuid_r getuid initgroups \ lchown lseek lstat mknod mmap seekdir setegid seteuid \ setgid setgroups setregid setreuid setuid stat \ - telldir tmpfile truncate + telldir tmpfile truncate timezone NEW_FUNCTIONS:=regcomp posix_regcomp \ regerror posix_regerror \ diff --git a/winsup/cygwin/include/cygwin/time.h b/winsup/cygwin/include/cygwin/time.h index 2f84505f59..50ec87dace 100644 --- a/winsup/cygwin/include/cygwin/time.h +++ b/winsup/cygwin/include/cygwin/time.h @@ -29,13 +29,8 @@ time_t __cdecl timegm (struct tm *); # define daylight _daylight # endif -/* The timezone function is only kept for backward compatibility. - POSIX expects the timezone variable as XSI extension. */ -# ifdef __timezonefunc__ -char __cdecl *timezone (void); -# elif !defined(timezone) -# define timezone _timezone -# endif +extern long timezone __asm__ ("__timezone"); + #endif /*__STRICT_ANSI__*/ #ifdef __cplusplus