Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <008901c3e55b$16e99fa0$5f093b8e@ab.hsia.telus.net> From: "Aaron V. Humphrey" To: References: <200401270249 DOT i0R2nYL09282 AT gwyn DOT tux DOT org> Subject: Re: porting bsd-games for cygwin Date: Tue, 27 Jan 2004 21:56:27 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes > I was working with Joseph S. Myers who maintains bsd-games and > was able to port most of them. Ah, yes, I was supposed to get back to you on what I'd done to get things running... > I had a few problems where it is felt that cygwin should be updated > to handle the situations. These problems are cygwin specific and > Linux handles them already. I mostly just went and searched for the appropriate things in include directories and subdirectories until I found them. Perhaps not optimal, but it worked for me. > 1. I needed err.h and err.c from > From http://www.canonical.org/~graken/sw/err.h.html No argument here. I downloaded and compiled them separately into each program that needs them. There was some talk, long ago, about bringing in "newlib", which apparently incorporates them...? > 2. I needed include/endian.h > and include/bits/endian.h from my linux box. Apparently I used #include in monop/cards.c, and #include in gomoku.h. They had the right elements in them, anywya. > 3. There was no include/ifaddrs.h ... not sure what to do here. Where was this? I couldn't find it by grepping... > 4. The shell does not handle (?) in case statements > To get it to work I had to change "(?)" to "?)" Don't remember this one, either. > 5. LINE_MAX (normally 2048) was undefined I found it in > 6. brk is not defined That's for the monop save/restore code, and there's a really a better way to do that than copying the entire memory to a file. I've never seen it work on any system, in my years of playing monop. I started working on a system of saving just the necessary information and reading it back, but I haven't really implemented it yet. -- --Alfvaen(Web page: http://www.telusplanet.net/public/alfvaen/ ) Song In My Head--Elton John:The Last Song Current Book--Michelle West:Sea of Sorrows Stop in the name of all that does not suck!! -- 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/