X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 25 Jan 2008 10:20:41 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: A warning building Emacs-cvs with recent Cygwin DLL Message-ID: <20080125092041.GZ30866@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4799A7E4 DOT 9020203 AT alice DOT it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4799A7E4.9020203@alice.it> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jan 25 10:12, Angelo Graziosi wrote: > /tmp/emacs/src/strftime.c:58: warning: '_tzname' redeclared without > dllimport attribute: previous dllimport ignored > ... > > It seems that the following simple patch avoid it: > ================================================= > --- strftime.c.orig 2007-01-14 04:24:37.000000000 +0100 > +++ strftime.c 2008-01-24 12:04:40.031250000 +0100 > @@ -55,9 +55,13 @@ > #endif > #if HAVE_TZNAME > #ifndef USE_CRT_DLL > +#ifdef __CYGWIN__ > +extern __IMPORT char *tzname[]; > +#else > extern char *tzname[]; > #endif > #endif > +#endif > > /* Do multibyte processing if multibytes are supported, unless > multibyte sequences are safe in formats. Multibyte sequences are > ================================================= > > Could someone verify it and, eventually, apply ? Much better, don't declare tzname. Per POSIX, tzname is declared in time.h. There is no reason to redeclare it after time.h has been included anyway. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/