[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]
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
|
|