From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22041 invoked by alias); 4 May 2004 17:46:32 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 22030 invoked from network); 4 May 2004 17:46:31 -0000 Received: from unknown (HELO tomts19-srv.bellnexxia.net) (209.226.175.73) by sources.redhat.com with SMTP; 4 May 2004 17:46:31 -0000 Received: from ableau.igb.umontreal.ca ([64.229.142.233]) by tomts19-srv.bellnexxia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040504174626.DDVQ10950.tomts19-srv.bellnexxia.net@ableau.igb.umontreal.ca> for ; Tue, 4 May 2004 13:46:26 -0400 Message-Id: <5.2.0.9.0.20040504133116.030ddad0@irispavp.igb.umontreal.ca> X-Sender: bleau3@irispavp.igb.umontreal.ca (Unverified) Date: Tue, 04 May 2004 17:46:00 -0000 To: cygwin@cygwin.com From: Andre Bleau Subject: Patch for robots 2.0-3 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-SW-Source: 2004-05/txt/msg00108.txt.bz2 I've noticed that robots 2.0-3 fails to update its high score files with=20 cygwin 1.5.x. Debugging shows that the bug is related to lseek. Searching=20 the archives, I found this message from cgf: http://www.cygwin.com/ml/cygwin/2003-07/msg01677.html >And here's why "fails.c" fails: > >--- lseek-fails.c~ 2003-07-29 11:43:29.428769079 -0400 >+++ lseek-fails.c 2003-07-29 11:46:01.911652780 -0400 >@@ -1,4 +1,5 @@ > #include >+#include > > void unzip() > { > >You need to include the prototype for lseek. > >cgf So, here's a patch to robots.h to do just that: $ diff -u robots.h robots.h.new --- robots.h 2003-07-18 11:23:57.001000000 -0400 +++ robots.h.new 2004-05-04 13:23:50.407687000 -0400 @@ -96,7 +96,11 @@ extern int old_free; extern long score; -extern long lseek(); +#ifdef __CYGWIN__ +#include +#else +extern long lseek(); +#endif extern char *strcpy (); extern char *strncpy (); Now I'm back to the top 20 robot killers of all time (on my machine): $ ./robots Top Twenty Scores for this Week: Rank Score Name > 1 20 ableau: chickened out on level 1.< [Press return to continue] Top Twenty Scores of All Time: Rank Score Name > 1 20 ableau: chickened out on level 1.< ;-) Andr=E9 Bleau, Cygwin's OpenGL package maintainer. Please address all questions and problem reports about Cygwin's OpenGL=20 package to cygwin at cygwin dot com .=20 -- 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/