This is the mail archive of the
mailing list for the Cygwin project.
Re: porting bsd-games for cygwin
- From: "Aaron V. Humphrey" <alfvaen1 at telus dot net>
- To: <cygwin at cygwin dot com>
- Date: Tue, 27 Jan 2004 21:56:27 -0700
- Subject: Re: porting bsd-games for cygwin
- References: <200401270249.i0R2nYL09282@gwyn.tux.org>
> 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
> 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 <asm/byteorder.h> in monop/cards.c,
and #include <sys/param.h> 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 <sys/syslimits.h>
> 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