From 5bc5ee4457a633ca8b47ec4264cdeee29b1c5342 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 19 Mar 2000 04:14:07 +0000 Subject: [PATCH] * times.cc: Fix extern declarations for variables that are exported but used by this modules. --- winsup/cygwin/ChangeLog | 3 ++- winsup/cygwin/times.cc | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 4b81d02d0..4c9903f10 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,6 +1,7 @@ Sat Mar 18 23:04:27 2000 Christopher Faylor - * times.cc: Remove unneeded (and incorrect) externs. + * times.cc: Fix extern declarations for variables that are exported but + used by this modules. Sat Mar 18 01:32:04 2000 Christopher Faylor diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 51f5d0898..738d84f82 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -8,6 +8,10 @@ This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ +/* Hide definitions from the library since they contain the + "dllimport" attribute. */ +#define _timezone dummy_timezone +#define _daylight dummy_daylight #include #include #include @@ -17,6 +21,11 @@ details. */ #include #include "winsup.h" +#undef _timezone +#undef _daylight +extern time_t _timezone; +extern int _daylight; + #define FACTOR (0x19db1ded53ea710LL) #define NSPERSEC 10000000LL