delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/27/23:57:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <alfvaen1 AT telus DOT net>
To: <cygwin AT cygwin DOT com>
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
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 <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
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019