Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2000:
[Freeciv-Dev] Re: Problems when compiling packets.c without HAVE_FCNTL_H
Home

[Freeciv-Dev] Re: Problems when compiling packets.c without HAVE_FCNTL_H

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Sebastian Bauer <sebauer@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Problems when compiling packets.c without HAVE_FCNTL_H
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Sat, 18 Mar 2000 00:19:02 +0000 (WET)

On Fri, 17 Mar 2000, Sebastian Bauer wrote:

> Hi,
> 
> I finally wanted to try to compile the the latest civserver for the
> amiga but it seems that the fcntl() function is missing so I guess
> that nonblocking writes are impossible at the moment (at least for
> the SAS compiler) for the Amiga version.
> 
> But if I don't define HAVE_FCNTL_H compiling packets.c fails (writefs
> is not declared). I attached a patch to fix the problem. I would be
> pleased if somebody with better knowledge could check the patch.
> (although I don't think that there are problems)

Thanks for the bug report, i didn't notice that compilation would fail on
machines without fcntl().  It should be fixed now.  Please report if it
isn't.

On the Amiga there should be a function to put sockets in non-blocking
mode:

IoctlSocket(sockfd, FIONBIO, &value)

If i'm not mistaken.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa




[Prev in Thread] Current Thread [Next in Thread]