X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 25 Jan 2008 12:16:30 +0200 Message-Id: From: Eli Zaretskii To: Angelo Graziosi CC: emacs-devel AT gnu DOT org, cygwin AT cygwin DOT com In-reply-to: <4799A7E4.9020203@alice.it> (message from Angelo Graziosi on Fri, 25 Jan 2008 10:12:04 +0100) Subject: Re: A warning building Emacs-cvs with recent Cygwin DLL Reply-to: Eli Zaretskii References: <4799A7E4 DOT 9020203 AT alice DOT it> 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 > Date: Fri, 25 Jan 2008 10:12:04 +0100 > From: Angelo Graziosi > Cc: cygwin AT cygwin DOT com > > With Cygwin DLL 1.5.25 (and the changes to 'tz...', I suppose), building > Emacs from CVS gives this warning: > > ... > gcc -c -Demacs -DHAVE_CONFIG_H -DUSE_LUCID -I. -I/tmp/emacs/src > -I/usr/X11R6/include -g -O2 -Wno-pointer-sign /tmp/emacs/src/strftime.c > > /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 Thanks. But it's better to put this kind of platform-dependent stuff in src/s/cygwin.h, not in general source files. Would that work for you? -- 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/